public
Created

Fixes error using 'm' snippet where 'M' is also defined

  • Download Gist
snipmate patch
1 2 3 4 5 6 7 8 9 10 11 12 13
diff --git a/autoload/snipMate.vim b/autoload/snipMate.vim
index 76fe56b..8f0ebce 100644
--- a/autoload/snipMate.vim
+++ b/autoload/snipMate.vim
@@ -748,7 +748,7 @@ fun! snipMate#GetSnippetsForWordBelowCursor(word, suffix, break_on_first_match)
for [k,snippetD] in items(funcref#Call(s:snipMate['get_snippets'], [snipMate#ScopesByFile(), wor
if a:suffix == ''
" hack: require exact match
- if k != word | continue | endif
+ if k !=# word | continue | endif
endif
call add(matching_snippets, [k, snippetD])
if a:break_on_first_match | break| endif

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.