added fix for more special characters (., ^, and $) in snippet triggers

This commit is contained in:
Michael Sanders committed 2009-03-01 16:40:36 -05:00
1 parent f6a9e90da6
commit 8f31a3b9bf
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ fun! TriggerSnippet()
return unl s:snippet
endif
let col = col('.')-len(word)
sil exe 's/'.escape(word, '/\*[]').'\%#//'
sil exe 's/'.escape(word, '.^$/\*[]').'\%#//'
return s:ExpandSnippet(col)
elseif exists('s:snipPos')
return s:JumpTabStop()