tests: break the undo chain when typing lines
    
        | author | Steve Losh <steve@stevelosh.com> | 
    
        | date | Thu, 09 Dec 2010 19:56:33 -0500 | 
    
    
        | parents | a3ab3da8805a | 
    
        | children | b1e69c24c8f9 | 
    
        | branches/tags | (none) | 
    
        | files | tests/vim_test/plugin/gundo_test_utils.vim | 
Changes
    
--- 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()"{{{