mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-13 08:46:14 -04:00
parent
d75a544b78
commit
613eb1c812
|
|
@ -93,7 +93,7 @@ endfunction
|
|||
|
||||
function! s:wrap(command,count)
|
||||
let preserve = (g:repeat_tick == b:changedtick)
|
||||
exe 'norm! '.(a:count ? a:count : '').a:command
|
||||
exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo' ? 'zv' : '')
|
||||
if preserve
|
||||
let g:repeat_tick = b:changedtick
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue