Fix paragraph motion for successive comments
This commit is contained in:
parent
a668c96b71
commit
6ef0a551d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user