mirror of
https://github.com/vim/vim.git
synced 2025-08-27 20:13:38 -04:00
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>
This commit is contained in:
parent
57300a22dc
commit
12d274af44
@ -214,6 +214,8 @@ func Test_popup_complete()
|
|||||||
call feedkeys("aM\<f5>\<enter>\<esc>", 'tx')
|
call feedkeys("aM\<f5>\<enter>\<esc>", 'tx')
|
||||||
call assert_equal(["March", "M", "March"], getline(1,4))
|
call assert_equal(["March", "M", "March"], getline(1,4))
|
||||||
%d
|
%d
|
||||||
|
|
||||||
|
set completeopt&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
@ -1078,6 +1080,7 @@ func Test_popup_complete_info_01()
|
|||||||
setlocal thesaurus=Xdummy.txt
|
setlocal thesaurus=Xdummy.txt
|
||||||
setlocal omnifunc=syntaxcomplete#Complete
|
setlocal omnifunc=syntaxcomplete#Complete
|
||||||
setlocal completefunc=syntaxcomplete#Complete
|
setlocal completefunc=syntaxcomplete#Complete
|
||||||
|
setlocal completeopt+=noinsert
|
||||||
setlocal spell
|
setlocal spell
|
||||||
for [keys, mode_name] in [
|
for [keys, mode_name] in [
|
||||||
\ ["", ''],
|
\ ["", ''],
|
||||||
|
@ -719,6 +719,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1559,
|
||||||
/**/
|
/**/
|
||||||
1558,
|
1558,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user