Fix expand snippet error

This commit is contained in:
Shougo Matsushita 2016-02-11 20:33:08 +09:00
parent 644b551aff
commit bbd764ebbc

View File

@ -194,6 +194,10 @@ endfunction"}}}
function! neosnippet#mappings#_trigger(function) abort "{{{
let [cur_text, col, expr] = neosnippet#mappings#_pre_trigger()
if !neosnippet#mappings#expandable_or_jumpable()
return ''
endif
let expr .= printf("\<ESC>:call %s(%s,%d)\<CR>",
\ a:function, string(cur_text), col)