diff --git a/autoload/repeat.vim b/autoload/repeat.vim index dfc9899..df9a7fe 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -93,7 +93,7 @@ endfunction function! s:wrap(command,count) let preserve = (g:repeat_tick == b:changedtick) - exe 'norm! '.(a:count ? a:count : '').a:command + exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo' ? 'zv' : '') if preserve let g:repeat_tick = b:changedtick endif