aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-01-12 07:34:11 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-03-27 07:26:42 +0800
commit44f70b4be146ee4d3a28cbd96fb966dd579de457 (patch)
tree9472874d85515b899b4728726dc21b3373f48003
parentfbac2545110bec653a0cc984b04e3636593ec214 (diff)
downloadrneovim-44f70b4be146ee4d3a28cbd96fb966dd579de457.tar.gz
rneovim-44f70b4be146ee4d3a28cbd96fb966dd579de457.tar.bz2
rneovim-44f70b4be146ee4d3a28cbd96fb966dd579de457.zip
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 https://github.com/vim/vim/commit/9eff3ee81839d67999491d293879ada134df2d3e Co-authored-by: glepnir <glephunter@gmail.com>
-rw-r--r--test/old/testdir/test_popup.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/old/testdir/test_popup.vim b/test/old/testdir/test_popup.vim
index 5875341ab1..3c950d54ca 100644
--- a/test/old/testdir/test_popup.vim
+++ b/test/old/testdir/test_popup.vim
@@ -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)