Merge pull request #34807 from zeertzjq/vim-9.1.1511

vim-patch:{9.1.1511,7a734b7}
This commit is contained in:
zeertzjq
2025-07-06 17:35:05 +08:00
committed by GitHub
2 changed files with 1 additions and 6 deletions

View File

@@ -164,6 +164,7 @@ endif
" Prepare for calling test_garbagecollect_now().
" Also avoids some delays in Insert mode completion.
let v:testing = 1
let s:has_ffi = luaeval('pcall(require, "ffi")')

View File

@@ -716,12 +716,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 Ntest_override("char_avail", 1)
@@ -970,12 +967,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!