mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Fix open fold after undo
This commit is contained in:
parent
c947ad2b6a
commit
db30e29bbe
|
|
@ -131,8 +131,7 @@ endfunction
|
|||
|
||||
function! repeat#wrap(command,count)
|
||||
let preserve = (g:repeat_tick == b:changedtick)
|
||||
call feedkeys((a:count ? a:count : '').a:command, 'n')
|
||||
exe (&foldopen =~# 'undo\|all' ? 'norm! zv' : '')
|
||||
call feedkeys((a:count ? a:count : '').a:command.(&foldopen =~# 'undo\|all' ? 'zv' : ''), 'n')
|
||||
if preserve
|
||||
let g:repeat_tick = b:changedtick
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue