Fixes #601: Change \s to \A
This commit is contained in:
parent
36d50e7ac4
commit
a3e79bd451
@ -105,7 +105,7 @@ function! vimtex#cmd#delete() " {{{1
|
||||
endfunction
|
||||
|
||||
function! vimtex#cmd#create() " {{{1
|
||||
let l:re = '\v%(^|\A)\zs\w+\ze%(\s|$)'
|
||||
let l:re = '\v%(^|\A)\zs\w+\ze%(\A|$)'
|
||||
let l:c0 = col('.') - (mode() ==# 'i')
|
||||
|
||||
let [l:l1, l:c1] = searchpos(l:re, 'bcn', line('.'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user