aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 19:58:02 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 19:58:02 +1300
commitbb08a1700090e260e7fe642398d248b9a1f7139a (patch)
tree0f998896633bab374f8c96ea52eb43edc6178483 /plugin
parentAdjust indentation to conventional 2-spaces (diff)
downloadvim-nextag-bb08a1700090e260e7fe642398d248b9a1f7139a.tar.gz
vim-nextag-bb08a1700090e260e7fe642398d248b9a1f7139a.zip
Use explicitly case-insensitive operators
Diffstat (limited to 'plugin')
-rw-r--r--plugin/nextag.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/nextag.vim b/plugin/nextag.vim
index 5ae1a17..4e5ddd5 100644
--- a/plugin/nextag.vim
+++ b/plugin/nextag.vim
@@ -21,12 +21,12 @@ let g:loaded_nextag = 1
" Search for a SGML tag with the specified flag.
"
function! s:MoveToSGMLTag(direction, mode, count)
- if a:mode == 'v'
+ if a:mode ==# 'v'
normal! gv
endif
- let l:visualfix = a:mode == 'v' && a:direction == 'next' && &selection != 'exclusive' ? 1 : 0
+ let l:visualfix = a:mode ==# 'v' && a:direction ==# 'next' && &selection !=# 'exclusive' ? 1 : 0
for l:iteration in range(1, a:count)
- call search('\m<\/\?\w\+[^>]*>', a:direction == 'next' ? 'W' : 'Wb')
+ call search('\m<\/\?\w\+[^>]*>', a:direction ==# 'next' ? 'W' : 'Wb')
if l:visualfix
normal! l
endif