mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-13 16:38:58 +08:00
[Commands] Add command to history when directly executed (#910)
This commit is contained in:
1 parent
cc13a4b728
commit
cabfd44a8b
1 file changed
+1
@@ -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