diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index df236208c5..76673c84b8 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -6961,6 +6961,22 @@ describe('builtin popupmenu', function() {1:~ }|*18 {2:-- }{6:Pattern not found} | ]]) + feed('') + + command('hi PmenuMatchSel guibg=NONE') + command('hi PmenuMatch guibg=NONE') + command('set cot=menu,noinsert,fuzzy') + feed('S') + screen:expect(pum_start) + feed('fb') + screen:expect([[ + fb^ | + {ms:f}{s:oo}{ms:B}{s:az fookind }{1: }| + {mn:f}{n:oo}{mn:b}{n:ar fookind }{1: }| + {mn:f}{n:oo}{mn:b}{n:ala fookind }{1: }| + {1:~ }|*15 + {2:-- }{5:match 1 of 9} | + ]]) feed('') end) diff --git a/test/old/testdir/test_popup.vim b/test/old/testdir/test_popup.vim index 3c950d54ca..51b6861e11 100644 --- a/test/old/testdir/test_popup.vim +++ b/test/old/testdir/test_popup.vim @@ -1519,9 +1519,9 @@ func Test_pum_highlights_match() call VerifyScreenDump(buf, 'Test_pum_highlights_15', {}) call term_sendkeys(buf, "\\") - call term_sendkeys(buf, ":hi PmenuMatchSel ctermfg=14\") + call term_sendkeys(buf, ":hi PmenuMatchSel ctermfg=14 ctermbg=NONE\") call TermWait(buf, 50) - call term_sendkeys(buf, ":hi PmenuMatch ctermfg=12\") + call term_sendkeys(buf, ":hi PmenuMatch ctermfg=12 ctermbg=NONE\") call term_sendkeys(buf, ":set cot=menu,noinsert,fuzzy\") call term_sendkeys(buf, "S\\") call TermWait(buf, 50)