mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Restore unfolding during undo
References: https://github.com/tpope/vim-repeat/issues/63
This commit is contained in:
parent
a89a4d0760
commit
5bd4c87a14
|
|
@ -124,6 +124,7 @@ function! repeat#errmsg()
|
|||
endfunction
|
||||
|
||||
function! repeat#wrap(command,count)
|
||||
exe (&foldopen =~# 'undo\|all' ? 'norm! zv' : '')
|
||||
let preserve = (g:repeat_tick == b:changedtick)
|
||||
return (a:count ? a:count : '') . a:command . (preserve ? ":let g:repeat_tick = b:changedtick\r" : '')
|
||||
endfunction
|
||||
|
|
|
|||
Loading…
Reference in a new issue