commit be3586431896d5c781c42c8df74c4acf2e4eb875
parent 436ae1d23e30d1cdb18e6e5709648d2bbdf21639
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 18 Jul 2025 06:06:38 +0800
vim-patch:9.1.1559: tests: Test_popup_complete_info_01() fails when run alone
Problem: tests: Test_popup_complete_info_01() fails when run alone.
Solution: Set buffer-local competeopt+=noinsert and add missing cleanup
in Test_popup_complete() (zeertzjq).
closes: vim/vim#17773
https://github.com/vim/vim/commit/12d274af44bce9002ece1dc115559d27fcd77602
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/test/old/testdir/test_popup.vim b/test/old/testdir/test_popup.vim
@@ -216,6 +216,8 @@ func Test_popup_complete()
call feedkeys("aM\<f5>\<enter>\<esc>", 'tx')
call assert_equal(["March", "M", "March"], getline(1,4))
%d
+
+ set completeopt&
endfunc
@@ -1081,6 +1083,7 @@ func Test_popup_complete_info_01()
setlocal thesaurus=Xdummy.txt
setlocal omnifunc=syntaxcomplete#Complete
setlocal completefunc=syntaxcomplete#Complete
+ setlocal completeopt+=noinsert
setlocal spell
for [keys, mode_name] in [
\ ["", ''],