mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-01-09 15:44:13 +01:00
fixed behavior when pressing <tab> when outside of a snippet & the popup menu is open
This commit is contained in:
@@ -127,7 +127,7 @@ fun! TriggerSnippet()
|
||||
if pumvisible() " Update snippet if completion is used, or deal with supertab
|
||||
if exists('s:sid') | return "\<c-n>" | endif
|
||||
call feedkeys("\<esc>a", 'n')
|
||||
return ''
|
||||
return exists('s:snipPos') ? '' : "\<tab>"
|
||||
endif
|
||||
if !exists('s:sid') && exists('g:SuperTabMappingForward')
|
||||
\ && g:SuperTabMappingForward == "<tab>"
|
||||
|
||||
Reference in New Issue
Block a user