From 613eb1c81261adfa5dead315089c432ff6dbbc51 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 22 Aug 2012 11:30:12 -0400 Subject: [PATCH] Respect 'foldopen' on undo Closes #9. --- autoload/repeat.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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