Fix #81 - Wrong insert position of fzf#vim#complete

This commit is contained in:
Junegunn Choi 2016-02-07 22:45:37 +09:00
parent baa6269062
commit 990dfe41ff

View file

@ -873,7 +873,7 @@ function! s:complete_insert(lines)
endif
let data = call(s:reducer, [a:lines])
execute 'normal!' (s:eol ? '' : 'h').del.(s:eol ? 'a': 'i').data
execute 'normal!' ((s:eol || empty(chars)) ? '' : 'h').del.(s:eol ? 'a': 'i').data
if has('nvim')
call feedkeys('a')
else