mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 20:54:28 +08:00
Do not remap keys when using feedkeys (#768)
This commit is contained in:
committed by
Junegunn Choi
parent
f0acabf7e8
commit
7bf940d261
@@ -896,7 +896,7 @@ function! s:command_sink(lines)
|
|||||||
endif
|
endif
|
||||||
let cmd = matchstr(a:lines[1], s:nbs.'\zs\S*\ze'.s:nbs)
|
let cmd = matchstr(a:lines[1], s:nbs.'\zs\S*\ze'.s:nbs)
|
||||||
if empty(a:lines[0])
|
if empty(a:lines[0])
|
||||||
call feedkeys(':'.cmd.(a:lines[1][0] == '!' ? '' : ' '))
|
call feedkeys(':'.cmd.(a:lines[1][0] == '!' ? '' : ' '), 'n')
|
||||||
else
|
else
|
||||||
execute cmd
|
execute cmd
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user