1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2026-01-06 22:04:11 +01:00

fixed placeholder bug when hitting <tab> after using the completion menu

This commit is contained in:
Michael Sanders
2009-03-26 00:19:10 -04:00
parent 566ca0f962
commit 80add0f93b

View File

@@ -123,8 +123,8 @@ fun! TriggerSnippet()
if exists('s:sid')
return exists('b:complType') ? b:complType : "\<c-n>"
endif
call feedkeys("\<esc>a", 'n')
return exists('g:snipPos') ? '' : "\<tab>"
call feedkeys("\<esc>a", 'n') " Close completion menu
call feedkeys("\<tab>") | return ''
endif
if !exists('s:sid') && exists('g:SuperTabMappingForward')
\ && g:SuperTabMappingForward == "<tab>"