mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Account for Vim undo double-incrementing b:changedtick
Resolves: https://github.com/tpope/vim-repeat/issues/63 Resolves: https://github.com/tpope/vim-repeat/issues/94 Resolves: https://github.com/tpope/vim-repeat/pull/95
This commit is contained in:
parent
e0466d2b24
commit
8b4435c5bb
|
|
@ -125,8 +125,7 @@ endfunction
|
|||
|
||||
function! repeat#wrap(command,count)
|
||||
let preserve = (g:repeat_tick == b:changedtick)
|
||||
call feedkeys((a:count ? a:count : '').a:command, 'n')
|
||||
exe (&foldopen =~# 'undo\|all' ? 'norm! zv' : '')
|
||||
call feedkeys((a:count ? a:count : '').a:command, 'ntix')
|
||||
if preserve
|
||||
let g:repeat_tick = b:changedtick
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue