From 84321bbe17d797c4ddc8af0b1f553346e1cd7b28 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Tue, 24 Mar 2009 14:15:26 -0400 Subject: [PATCH] fixed behavior when pressing when outside of a snippet & the popup menu is open --- plugin/snipMate.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/snipMate.vim b/plugin/snipMate.vim index b4d73e4..393029b 100644 --- a/plugin/snipMate.vim +++ b/plugin/snipMate.vim @@ -127,7 +127,7 @@ fun! TriggerSnippet() if pumvisible() " Update snippet if completion is used, or deal with supertab if exists('s:sid') | return "\" | endif call feedkeys("\a", 'n') - return '' + return exists('s:snipPos') ? '' : "\" endif if !exists('s:sid') && exists('g:SuperTabMappingForward') \ && g:SuperTabMappingForward == ""