Fix for issue #63 where repeat does not work if executed immediately after an undo

This commit is contained in:
Steve Vermeulen 2018-12-28 16:11:14 +08:00
parent 43d2678fa5
commit 953c040422

View file

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