From 8b4435c5bbf89cebab43c80146b50c9c45c06c2f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 7 Jul 2024 13:00:05 -0400 Subject: [PATCH] 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 --- autoload/repeat.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index b02ed4d..a7a6919 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -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