From 1b82cad74cd5d5caf3c4092365cda54dc1fb853e Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Sun, 21 Jan 2018 16:45:49 -0700 Subject: [PATCH] Fix undo messages being hidden (#33) --- autoload/repeat.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index fde6a38..fdad58c 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -111,7 +111,8 @@ endfunction function! repeat#wrap(command,count) let preserve = (g:repeat_tick == b:changedtick) - exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo\|all' ? 'zv' : '') + call feedkeys((a:count ? a:count : '').a:command, 'n') + exe (&foldopen =~# 'undo\|all' ? 'norm! zv' : '') if preserve let g:repeat_tick = b:changedtick endif