mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Fix for issue #63 where repeat does not work if executed immediately after an undo
This commit is contained in:
parent
43d2678fa5
commit
953c040422
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue