From 95e34f42a16f894cef41028635358eb3ff8e3543 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Sat, 6 Jun 2009 13:55:51 -0400 Subject: [PATCH] fixed bug when there is over 9 tab stops on the same line --- autoload/snipMate.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/snipMate.vim b/autoload/snipMate.vim index f729612..618eddd 100644 --- a/autoload/snipMate.vim +++ b/autoload/snipMate.vim @@ -120,7 +120,7 @@ fun s:BuildTabStops(snip, lnum, col, indent) let withoutVars = substitute(a:snip, '$\d\+', '', 'g') while stridx(a:snip, '${'.i) != -1 let beforeTabStop = matchstr(withoutVars, '^.*\ze${'.i.'\D') - let withoutOthers = substitute(withoutVars, '${'.i.'\@!\d\+.\{-}}', '', 'g') + let withoutOthers = substitute(withoutVars, '${\('.i.'\D\)\@!\d\+.\{-}}', '', 'g') let j = i - 1 call add(snipPos, [0, 0, -1])