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:
@@ -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