mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Merge 1465a190e6 into 24afe922e6
This commit is contained in:
commit
24465c652a
|
|
@ -135,6 +135,9 @@ function! repeat#errmsg()
|
|||
endfunction
|
||||
|
||||
function! repeat#wrap(command,count)
|
||||
if !&modifiable
|
||||
return
|
||||
endif
|
||||
let preserve = (g:repeat_tick == b:changedtick)
|
||||
call feedkeys((a:count ? a:count : '').a:command, 'n')
|
||||
exe (&foldopen =~# 'undo\|all' ? 'norm! zv' : '')
|
||||
|
|
|
|||
Loading…
Reference in a new issue