Fix undo messages being hidden

This commit is contained in:
Jacob Niehus 2014-11-28 11:18:27 -07:00
parent 2a3c5f8e3c
commit 23bb1e0dea

View file

@ -97,7 +97,8 @@ endfunction
function! repeat#wrap(command,count)
let preserve = (g:repeat_tick == b:changedtick)
exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo' ? 'zv' : '')
call feedkeys((a:count ? a:count : '').a:command, 'n')
exe (&foldopen =~# 'undo' ? 'norm! zv' : '')
if preserve
let g:repeat_tick = b:changedtick
endif