aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-01-30 18:59:01 +0800
committerGitHub <noreply@github.com>2025-01-30 18:59:01 +0800
commitb3b255396d9fad56c074099b0cdcdbbecab79d4a (patch)
tree4d532027961affc3307d70a51c07b0d42028eb2e /test/old
parentefa664c7ed21b63f2cf0a8caa53161fe7e32b2bb (diff)
downloadrneovim-b3b255396d9fad56c074099b0cdcdbbecab79d4a.tar.gz
rneovim-b3b255396d9fad56c074099b0cdcdbbecab79d4a.tar.bz2
rneovim-b3b255396d9fad56c074099b0cdcdbbecab79d4a.zip
vim-patch:9.1.1057: Superfluous cleanup steps in test_ins_complete.vim (#32257)
Problem: Superfluous cleanup steps in test_ins_complete.vim. Solution: Remove unnecessary :bw! and :autocmd! commands. Also remove unnecessary STRLEN() in insexpand.c (zeertzjq) closes: vim/vim#16542 https://github.com/vim/vim/commit/8297e2cee337c626c6691e81b25e1f1897c71b86
Diffstat (limited to 'test/old')
-rw-r--r--test/old/testdir/test_ins_complete.vim6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim
index 969d5012f4..64a0ee3124 100644
--- a/test/old/testdir/test_ins_complete.vim
+++ b/test/old/testdir/test_ins_complete.vim
@@ -2928,7 +2928,6 @@ func Test_complete_info_matches()
call assert_false(has_key(g:compl_info, 'matches'))
bw!
- bw!
unlet g:what
delfunc ShownInfo
set cot&
@@ -2959,7 +2958,6 @@ func Test_complete_info_completed()
call assert_equal({}, g:compl_info)
bw!
- bw!
delfunc ShownInfo
set cot&
endfunc
@@ -3021,7 +3019,7 @@ function Test_completeopt_preinsert()
call assert_equal("hello fobar wo", getline('.'))
call feedkeys("\<C-E>\<ESC>", 'tx')
- " confrim
+ " confirm
call feedkeys("S\<C-X>\<C-O>f\<C-Y>", 'tx')
call assert_equal("fobar", getline('.'))
call assert_equal(5, col('.'))
@@ -3074,11 +3072,9 @@ function Test_completeopt_preinsert()
call assert_equal(5, col('.'))
bw!
- bw!
set cot&
set omnifunc&
delfunc Omni_test
- autocmd! CompleteChanged
endfunc
" vim: shiftwidth=2 sts=2 expandtab nofoldenable