From 6b441fb93e0f2b929498c8a880ef7db9ea93467b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 6 Nov 2017 20:39:48 +1300 Subject: Break up long l:visualfix definition Not that this makes it much easier to understand. There's got to be a better way to do this. --- plugin/nextag.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3