aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 20:39:48 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 20:39:48 +1300
commit6b441fb93e0f2b929498c8a880ef7db9ea93467b (patch)
tree0536691abd546a4197917741ba776d7acfd609e0 /plugin
parentMove tag pattern into variable (diff)
downloadvim-nextag-6b441fb93e0f2b929498c8a880ef7db9ea93467b.tar.gz
vim-nextag-6b441fb93e0f2b929498c8a880ef7db9ea93467b.zip
Break up long l:visualfix definitionv0.1.0
Not that this makes it much easier to understand. There's got to be a better way to do this.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/nextag.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/nextag.vim b/plugin/nextag.vim
index 04c2160..d08bd78 100644
--- a/plugin/nextag.vim
+++ b/plugin/nextag.vim
@@ -26,7 +26,11 @@ function! s:MoveToSGMLTag(direction, mode)
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, v:count1)
call search(s:tag, a:direction ==# 'next' ? 'W' : 'Wb')
if l:visualfix