Fix undo messages being hidden (#33)

This commit is contained in:
Jacob Niehus 2018-01-21 16:45:49 -07:00 committed by Tim Pope
parent 070ee90324
commit 1b82cad74c

View File

@ -111,7 +111,8 @@ endfunction
function! repeat#wrap(command,count) function! repeat#wrap(command,count)
let preserve = (g:repeat_tick == b:changedtick) 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 if preserve
let g:repeat_tick = b:changedtick let g:repeat_tick = b:changedtick
endif endif