From 319292a669c1ab8f28537824c25567bf757ed67a Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Tue, 24 Mar 2009 15:11:40 -0400 Subject: [PATCH] fixed behavior with popup menu when supertab.vim is installed --- plugin/snipMate.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/snipMate.vim b/plugin/snipMate.vim index 869f992..ef8087c 100644 --- a/plugin/snipMate.vim +++ b/plugin/snipMate.vim @@ -125,7 +125,9 @@ endf fun! TriggerSnippet() if pumvisible() " Update snippet if completion is used, or deal with supertab - if exists('s:sid') | return "\" | endif + if exists('s:sid') + return exists('b:complType') ? b:complType : "\" + endif call feedkeys("\a", 'n') return exists('s:snipPos') ? '' : "\" endif