mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-01-07 06:24:11 +01:00
fixed placeholder bug when hitting <tab> after using the completion menu
This commit is contained in:
@@ -123,8 +123,8 @@ fun! TriggerSnippet()
|
|||||||
if exists('s:sid')
|
if exists('s:sid')
|
||||||
return exists('b:complType') ? b:complType : "\<c-n>"
|
return exists('b:complType') ? b:complType : "\<c-n>"
|
||||||
endif
|
endif
|
||||||
call feedkeys("\<esc>a", 'n')
|
call feedkeys("\<esc>a", 'n') " Close completion menu
|
||||||
return exists('g:snipPos') ? '' : "\<tab>"
|
call feedkeys("\<tab>") | return ''
|
||||||
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