# HG changeset patch # User Steve Losh # Date 1291942593 18000 # Node ID d018089ed71aaf3b4ad50fdc3df95e02d20c2a24 # Parent a3ab3da8805aad198c87a2651a35a912a02670c1 tests: break the undo chain when typing lines diff -r a3ab3da8805a -r d018089ed71a tests/vim_test/plugin/gundo_test_utils.vim --- a/tests/vim_test/plugin/gundo_test_utils.vim Thu Dec 09 19:34:46 2010 -0500 +++ b/tests/vim_test/plugin/gundo_test_utils.vim Thu Dec 09 19:56:33 2010 -0500 @@ -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 @@ function! g:TypeLineDone(text)"{{{ exe "normal i" . a:text . "\n\e" + + " Break the undo chain + let &undolevels = s:undolevels_save endfunction"}}} function! g:PrintTheFuckingBuffer()"{{{