mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-10-09 15:12:29 +02:00
added fix for more special characters (., ^, and $) in snippet triggers
This commit is contained in:
1 parent
f6a9e90da6
commit
8f31a3b9bf
1 file changed
+1
-1
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user