This commit is contained in:
Daniel Hahler 2014-11-05 21:08:30 +00:00
commit 242eb43c5c

View file

@ -97,7 +97,8 @@ endfunction
function! repeat#wrap(command,count)
let preserve = (g:repeat_tick == b:changedtick)
exe 'norm! '.(a:count ? a:count : '').a:command . (&foldopen =~# 'undo' ? 'zv' : '')
call feedkeys((a:count ? a:count : '').a:command, 'n')
exe (&foldopen =~# 'undo' ? 'norm! zv' : '')
if preserve
let g:repeat_tick = b:changedtick
endif