mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Merge 1227ea795b into 24afe922e6
This commit is contained in:
commit
92009e32ba
|
|
@ -139,7 +139,10 @@ function! repeat#wrap(command,count)
|
|||
call feedkeys((a:count ? a:count : '').a:command, 'n')
|
||||
exe (&foldopen =~# 'undo\|all' ? 'norm! zv' : '')
|
||||
if preserve
|
||||
let g:repeat_tick = b:changedtick
|
||||
augroup repeat_preserve_after_undo
|
||||
autocmd!
|
||||
autocmd TextChanged <buffer> let g:repeat_tick = b:changedtick | autocmd! repeat_preserve_after_undo
|
||||
augroup END
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue