mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Fix repeat after undo
This commit is contained in:
parent
c947ad2b6a
commit
1227ea795b
|
|
@ -134,7 +134,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