mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 05:04:30 +08:00
[Commands] Add command to history when directly executed (#910)
This commit is contained in:
@@ -979,6 +979,7 @@ function! s:command_sink(lines)
|
|||||||
if empty(a:lines[0])
|
if empty(a:lines[0])
|
||||||
call feedkeys(':'.cmd.(a:lines[1][0] == '!' ? '' : ' '), 'n')
|
call feedkeys(':'.cmd.(a:lines[1][0] == '!' ? '' : ' '), 'n')
|
||||||
else
|
else
|
||||||
|
call histadd(':', cmd)
|
||||||
execute cmd
|
execute cmd
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user