mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-22 14:08:01 +01:00
added fix for more special characters (., ^, and $) in snippet triggers
This commit is contained in:
@@ -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