mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-01-30 20:35:50 +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 pumvisible() " Update snippet if completion is used, or deal with supertab
|
||||||
if exists('s:sid') | return "\<c-n>" | endif
|
if exists('s:sid') | return "\<c-n>" | endif
|
||||||
call feedkeys("\<esc>a", 'n')
|
call feedkeys("\<esc>a", 'n')
|
||||||
return ''
|
return exists('s:snipPos') ? '' : "\<tab>"
|
||||||
endif
|
endif
|
||||||
if !exists('s:sid') && exists('g:SuperTabMappingForward')
|
if !exists('s:sid') && exists('g:SuperTabMappingForward')
|
||||||
\ && g:SuperTabMappingForward == "<tab>"
|
\ && g:SuperTabMappingForward == "<tab>"
|
||||||
|
|||||||
Reference in New Issue
Block a user