diff options
-rw-r--r-- | test/functional/ui/popupmenu_spec.lua | 16 | ||||
-rw-r--r-- | test/old/testdir/test_popup.vim | 4 |
2 files changed, 18 insertions, 2 deletions
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('<C-E><Esc>') + + command('hi PmenuMatchSel guibg=NONE') + command('hi PmenuMatch guibg=NONE') + command('set cot=menu,noinsert,fuzzy') + feed('S<C-X><C-O>') + 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('<C-E><Esc>') 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, "\<C-E>\<Esc>") - call term_sendkeys(buf, ":hi PmenuMatchSel ctermfg=14\<CR>") + call term_sendkeys(buf, ":hi PmenuMatchSel ctermfg=14 ctermbg=NONE\<CR>") call TermWait(buf, 50) - call term_sendkeys(buf, ":hi PmenuMatch ctermfg=12\<CR>") + call term_sendkeys(buf, ":hi PmenuMatch ctermfg=12 ctermbg=NONE\<CR>") call term_sendkeys(buf, ":set cot=menu,noinsert,fuzzy\<CR>") call term_sendkeys(buf, "S\<C-X>\<C-O>") call TermWait(buf, 50) |