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)"{{{
|
function! g:Goto(buffername)"{{{
|
||||||
exec bufwinnr(bufnr(a:buffername)) . 'wincmd w'
|
exec bufwinnr(bufnr(a:buffername)) . 'wincmd w'
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
@ -25,6 +27,9 @@ endfunction"}}}
|
|||||||
|
|
||||||
function! g:TypeLineDone(text)"{{{
|
function! g:TypeLineDone(text)"{{{
|
||||||
exe "normal i" . a:text . "\n\e"
|
exe "normal i" . a:text . "\n\e"
|
||||||
|
|
||||||
|
" Break the undo chain
|
||||||
|
let &undolevels = s:undolevels_save
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! g:PrintTheFuckingBuffer()"{{{
|
function! g:PrintTheFuckingBuffer()"{{{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user