mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
vim-patch:9.1.1511: tests: two edit tests change v:testing from 1 to 0
Problem: tests: two edit tests change v:testing from 1 to 0. Solution: Don't change v:testing in these two tests, since it's already set to 1 in runtest.vim (zeertzjq). closes: vim/vim#1766096076bf41e
(cherry picked from commit11e967d5af
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
85c9014c09
commit
730a5e0599
@@ -164,6 +164,7 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
" Prepare for calling test_garbagecollect_now().
|
" Prepare for calling test_garbagecollect_now().
|
||||||
|
" Also avois some delays in Insert mode completion.
|
||||||
let v:testing = 1
|
let v:testing = 1
|
||||||
|
|
||||||
let s:has_ffi = luaeval('pcall(require, "ffi")')
|
let s:has_ffi = luaeval('pcall(require, "ffi")')
|
||||||
|
@@ -716,12 +716,9 @@ func Test_edit_CTRL_K()
|
|||||||
%d
|
%d
|
||||||
call setline(1, 'A')
|
call setline(1, 'A')
|
||||||
call cursor(1, 1)
|
call cursor(1, 1)
|
||||||
let v:testing = 1
|
|
||||||
try
|
try
|
||||||
call feedkeys("A\<c-x>\<c-k>\<esc>", 'tnix')
|
call feedkeys("A\<c-x>\<c-k>\<esc>", 'tnix')
|
||||||
catch
|
catch
|
||||||
" error sleeps 2 seconds, when v:testing is not set
|
|
||||||
let v:testing = 0
|
|
||||||
endtry
|
endtry
|
||||||
|
|
||||||
call Ntest_override("char_avail", 1)
|
call Ntest_override("char_avail", 1)
|
||||||
@@ -970,12 +967,9 @@ func Test_edit_CTRL_T()
|
|||||||
%d
|
%d
|
||||||
call setline(1, 'mad')
|
call setline(1, 'mad')
|
||||||
call cursor(1, 1)
|
call cursor(1, 1)
|
||||||
let v:testing = 1
|
|
||||||
try
|
try
|
||||||
call feedkeys("A\<c-x>\<c-t>\<esc>", 'tnix')
|
call feedkeys("A\<c-x>\<c-t>\<esc>", 'tnix')
|
||||||
catch
|
catch
|
||||||
" error sleeps 2 seconds, when v:testing is not set
|
|
||||||
let v:testing = 0
|
|
||||||
endtry
|
endtry
|
||||||
call assert_equal(['mad'], getline(1, '$'))
|
call assert_equal(['mad'], getline(1, '$'))
|
||||||
bw!
|
bw!
|
||||||
|
Reference in New Issue
Block a user