mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
Merge 7a6b4f2ef4107f441348b9dfb89a20314fa7fec2 into a494ce1c64a2637719a5c1339abf19ec7c48089c
This commit is contained in:
commit
19159d5204
@ -180,6 +180,7 @@ endif
|
||||
|
||||
|
||||
" Prepare for calling test_garbagecollect_now().
|
||||
" Also avois some delays in Insert mode completion.
|
||||
let v:testing = 1
|
||||
|
||||
" By default, copy each buffer line into allocated memory, so that valgrind can
|
||||
|
@ -709,12 +709,9 @@ func Test_edit_CTRL_K()
|
||||
%d
|
||||
call setline(1, 'A')
|
||||
call cursor(1, 1)
|
||||
let v:testing = 1
|
||||
try
|
||||
call feedkeys("A\<c-x>\<c-k>\<esc>", 'tnix')
|
||||
catch
|
||||
" error sleeps 2 seconds, when v:testing is not set
|
||||
let v:testing = 0
|
||||
endtry
|
||||
|
||||
call test_override("char_avail", 1)
|
||||
@ -962,12 +959,9 @@ func Test_edit_CTRL_T()
|
||||
%d
|
||||
call setline(1, 'mad')
|
||||
call cursor(1, 1)
|
||||
let v:testing = 1
|
||||
try
|
||||
call feedkeys("A\<c-x>\<c-t>\<esc>", 'tnix')
|
||||
catch
|
||||
" error sleeps 2 seconds, when v:testing is not set
|
||||
let v:testing = 0
|
||||
endtry
|
||||
call assert_equal(['mad'], getline(1, '$'))
|
||||
bw!
|
||||
|
Loading…
x
Reference in New Issue
Block a user