[Commands] Add command to history when directly executed (#910)

This commit is contained in:
infokiller
2020-11-29 11:46:59 +00:00
committed by GitHub
parent cc13a4b728
commit cabfd44a8b

View File

@@ -979,6 +979,7 @@ function! s:command_sink(lines)
if empty(a:lines[0])
call feedkeys(':'.cmd.(a:lines[1][0] == '!' ? '' : ' '), 'n')
else
call histadd(':', cmd)
execute cmd
endif
endfunction