Fix paragraph motion for successive comments

This commit is contained in:
Karl Yngve Lervåg 2015-09-17 15:56:36 +02:00
parent a668c96b71
commit 6ef0a551d4

View File

@ -219,12 +219,12 @@ function! vimtex#motion#next_paragraph(backwards, visual) " {{{1
endif
if vimtex#util#in_comment()
let l:search = '^\s*\(%\)\@!\S'
let l:search = '^\s*\($\|\(%\)\@!\S\)'
else
let l:search = '\v^\s*($|' . join(s:paragraph_boundaries, '|') . ')'
endif
call search(l:search, l:flags)
if a:visual
if a:backwards
normal! j0