Skip to content

Commit 12d274a

Browse files
zeertzjqchrisbra
authored andcommitted
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: #17773 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 57300a2 commit 12d274a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/test_popup.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ func Test_popup_complete()
214214
call feedkeys("aM\<f5>\<enter>\<esc>", 'tx')
215215
call assert_equal(["March", "M", "March"], getline(1,4))
216216
%d
217+
218+
set completeopt&
217219
endfunc
218220

219221

@@ -1078,6 +1080,7 @@ func Test_popup_complete_info_01()
10781080
setlocal thesaurus=Xdummy.txt
10791081
setlocal omnifunc=syntaxcomplete#Complete
10801082
setlocal completefunc=syntaxcomplete#Complete
1083+
setlocal completeopt+=noinsert
10811084
setlocal spell
10821085
for [keys, mode_name] in [
10831086
\ ["", ''],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ static char *(features[]) =
719719

720720
static int included_patches[] =
721721
{ /* Add new patch number below this line */
722+
/**/
723+
1559,
722724
/**/
723725
1558,
724726
/**/

0 commit comments

Comments
 (0)