Fixes #601: Change \s to \A

This commit is contained in:
Karl Yngve Lervåg 2016-10-25 13:02:27 +02:00
parent 36d50e7ac4
commit a3e79bd451

View File

@ -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('.'))