From 4a63cf2adc4270bdb06d30d80cdac6c4466d7a30 Mon Sep 17 00:00:00 2001 From: Reza Jelveh Date: Fri, 20 Mar 2009 06:50:43 +0800 Subject: [PATCH] fixed a typo in the renames Signed-off-by: Michael Sanders --- plugin/snipMate.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/snipMate.vim b/plugin/snipMate.vim index 0da5dc6..14a5347 100644 --- a/plugin/snipMate.vim +++ b/plugin/snipMate.vim @@ -146,12 +146,12 @@ endf " Check if word under cursor is snippet trigger; if it isn't, try checking if " the text after non-word characters is (e.g. check for "foo" in "bar.foo") fun s:GetSnippet(scope, ft) - let word = a:word + let word = a:scope wh !exists('s:snippet') - if exists('s:snippets["'.a:scope.'"]["'.word.'"]') - let s:snippet = s:snippets[a:scope][word] - elseif exists('s:multi_snips["'.a:scope.'"]["'.word.'"]') - let s:snippet = s:ChooseSnippet(a:scope, word) + if exists('s:snippets["'.a:ft.'"]["'.word.'"]') + let s:snippet = s:snippets[a:ft][word] + elseif exists('s:multi_snips["'.a:ft.'"]["'.word.'"]') + let s:snippet = s:ChooseSnippet(a:ft, word) else if match(word, '\W') == -1 | break | endif let word = substitute(word, '.\{-}\W', '', '')