1
0
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:
Michael Sanders
2009-03-24 14:15:26 -04:00
parent 7372923fda
commit 84321bbe17

View File

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