Feed 'a' only when Neovim terminal is used

Close #165 and #166
This commit is contained in:
Junegunn Choi
2016-06-20 22:41:10 +09:00
parent 4d252902c9
commit 94e499b131

View File

@@ -1025,8 +1025,8 @@ function! s:complete_insert(lines)
let data = call(s:reducer, [a:lines])
execute 'normal!' ((s:eol || empty(chars)) ? '' : 'h').del.(s:eol ? 'a': 'i').data
if has('nvim')
call feedkeys('a')
if mode() =~ 't'
call feedkeys('a', 'n')
else
execute "normal! \<esc>la"
endif