From 96de2fbc39fdb3a33c12a288789daafe67993b89 Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Thu, 9 Dec 2010 19:56:33 -0500 Subject: [PATCH] tests: break the undo chain when typing lines --- tests/vim_test/plugin/gundo_test_utils.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/vim_test/plugin/gundo_test_utils.vim b/tests/vim_test/plugin/gundo_test_utils.vim index 0021dd2..0e0b412 100644 --- a/tests/vim_test/plugin/gundo_test_utils.vim +++ b/tests/vim_test/plugin/gundo_test_utils.vim @@ -1,3 +1,5 @@ +let s:undolevels_save = &undolevels + function! g:Goto(buffername)"{{{ exec bufwinnr(bufnr(a:buffername)) . 'wincmd w' endfunction"}}} @@ -25,6 +27,9 @@ endfunction"}}} function! g:TypeLineDone(text)"{{{ exe "normal i" . a:text . "\n\e" + + " Break the undo chain + let &undolevels = s:undolevels_save endfunction"}}} function! g:PrintTheFuckingBuffer()"{{{