From b3b255396d9fad56c074099b0cdcdbbecab79d4a Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 30 Jan 2025 18:59:01 +0800 Subject: 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 --- test/old/testdir/test_ins_complete.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test') 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 @@ -2927,7 +2927,6 @@ func Test_complete_info_matches() \], g:compl_info['items']) call assert_false(has_key(g:compl_info, 'matches')) - bw! bw! unlet g:what delfunc ShownInfo @@ -2958,7 +2957,6 @@ func Test_complete_info_completed() call feedkeys("Go\\\\dd", 'tx') call assert_equal({}, g:compl_info) - bw! bw! delfunc ShownInfo set cot& @@ -3021,7 +3019,7 @@ function Test_completeopt_preinsert() call assert_equal("hello fobar wo", getline('.')) call feedkeys("\\", 'tx') - " confrim + " confirm call feedkeys("S\\f\", 'tx') call assert_equal("fobar", getline('.')) call assert_equal(5, col('.')) @@ -3073,12 +3071,10 @@ function Test_completeopt_preinsert() call assert_equal("fobar", getline('.')) call assert_equal(5, col('.')) - bw! bw! set cot& set omnifunc& delfunc Omni_test - autocmd! CompleteChanged endfunc " vim: shiftwidth=2 sts=2 expandtab nofoldenable -- cgit