This commit is contained in:
lacygoill 2021-02-06 14:07:38 +00:00 committed by GitHub
commit 92009e32ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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