From a3e79bd4513f1772560aec8a4e2282b62c6badd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 25 Oct 2016 13:02:27 +0200 Subject: [PATCH] Fixes #601: Change \s to \A --- autoload/vimtex/cmd.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/cmd.vim b/autoload/vimtex/cmd.vim index 79c5f9d..554273c 100644 --- a/autoload/vimtex/cmd.vim +++ b/autoload/vimtex/cmd.vim @@ -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('.'))