mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Merge 62745d5997 into 2a3c5f8e3c
This commit is contained in:
commit
242eb43c5c
|
|
@ -97,7 +97,8 @@ endfunction
|
|||
|
||||
function! repeat#wrap(command,count)
|
||||
let preserve = (g:repeat_tick == b:changedtick)
|
||||
exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo' ? 'zv' : '')
|
||||
call feedkeys((a:count ? a:count : '').a:command, 'n')
|
||||
exe (&foldopen =~# 'undo' ? 'norm! zv' : '')
|
||||
if preserve
|
||||
let g:repeat_tick = b:changedtick
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue