mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.1.1006: PmenuMatch completion highlight can be combined
Problem: PmenuMatch completion highlight can be combined
Solution: Combine highlight groups PmenuMatch with Pmenu and
PmenuMatchSel with PmenuSel (glepnir)
fixes: vim/vim#15563
closes: vim/vim#16408
9eff3ee818
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -1517,6 +1517,16 @@ func Test_pum_highlights_match()
|
||||
call term_sendkeys(buf, "\<ESC>S/non_existing_folder\<C-X>\<C-F>")
|
||||
call TermWait(buf, 50)
|
||||
call VerifyScreenDump(buf, 'Test_pum_highlights_15', {})
|
||||
call term_sendkeys(buf, "\<C-E>\<Esc>")
|
||||
|
||||
call term_sendkeys(buf, ":hi PmenuMatchSel ctermfg=14\<CR>")
|
||||
call TermWait(buf, 50)
|
||||
call term_sendkeys(buf, ":hi PmenuMatch ctermfg=12\<CR>")
|
||||
call term_sendkeys(buf, ":set cot=menu,noinsert,fuzzy\<CR>")
|
||||
call term_sendkeys(buf, "S\<C-X>\<C-O>")
|
||||
call TermWait(buf, 50)
|
||||
call term_sendkeys(buf, "fb")
|
||||
call VerifyScreenDump(buf, 'Test_pum_highlights_18', {})
|
||||
|
||||
call term_sendkeys(buf, "\<C-E>\<Esc>")
|
||||
call TermWait(buf)
|
||||
|
Reference in New Issue
Block a user