[History] Fix feedkeys to ignore command-line mappings (#836)

This commit is contained in:
Viacheslav Lotsmanov
2019-07-04 16:53:22 +03:00
committed by Junegunn Choi
parent 91ed5f4b39
commit 359a80e3a3

View File

@@ -485,7 +485,7 @@ function! s:history_sink(type, lines)
if key == 'ctrl-e'
call histadd(a:type, item)
redraw
call feedkeys(a:type."\<up>")
call feedkeys(a:type."\<up>", 'n')
else
if a:type == ':'
call histadd(a:type, item)