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
|
endif
|
||||||
|
|
||||||
if vimtex#util#in_comment()
|
if vimtex#util#in_comment()
|
||||||
let l:search = '^\s*\(%\)\@!\S'
|
let l:search = '^\s*\($\|\(%\)\@!\S\)'
|
||||||
else
|
else
|
||||||
let l:search = '\v^\s*($|' . join(s:paragraph_boundaries, '|') . ')'
|
let l:search = '\v^\s*($|' . join(s:paragraph_boundaries, '|') . ')'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call search(l:search, l:flags)
|
call search(l:search, l:flags)
|
||||||
|
|
||||||
if a:visual
|
if a:visual
|
||||||
if a:backwards
|
if a:backwards
|
||||||
normal! j0
|
normal! j0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user