mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-10-09 15:12:29 +02:00
fixed behavior with popup menu when supertab.vim is installed
This commit is contained in:
1 parent
1e8fe57222
commit
319292a669
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user