tests: break the undo chain when typing lines
This commit is contained in:
parent
66e274cfa6
commit
96de2fbc39
@ -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()"{{{
|
||||
|
Loading…
Reference in New Issue
Block a user