1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-21 21:37:59 +01:00

fixed behavior with popup menu when supertab.vim is installed

This commit is contained in:
Michael Sanders
2009-03-24 15:11:40 -04:00
parent 1e8fe57222
commit 319292a669

View File

@@ -125,7 +125,9 @@ endf
fun! TriggerSnippet()
if pumvisible() " Update snippet if completion is used, or deal with supertab
if exists('s:sid') | return "\<c-n>" | endif
if exists('s:sid')
return exists('b:complType') ? b:complType : "\<c-n>"
endif
call feedkeys("\<esc>a", 'n')
return exists('s:snipPos') ? '' : "\<tab>"
endif