Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

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

View 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.