aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-01-12 16:35:07 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-03-27 07:26:42 +0800
commitc17caca9b7a5e11c1262a0d8409075d9168980d3 (patch)
treeb02fe72a9e9cf491079c3dcd2ce3020b9c854a58
parent44f70b4be146ee4d3a28cbd96fb966dd579de457 (diff)
downloadrneovim-c17caca9b7a5e11c1262a0d8409075d9168980d3.tar.gz
rneovim-c17caca9b7a5e11c1262a0d8409075d9168980d3.tar.bz2
rneovim-c17caca9b7a5e11c1262a0d8409075d9168980d3.zip
vim-patch:9.1.1008: tests: test for patch 9.1.1006 doesn't fail without the patch
Problem: tests: test for patch 9.1.1006 doesn't fail without the patch (after v9.1.1006) Solution: Add ctermbg=NONE to the highlight groups (zeertzjq). closes: vim/vim#16425 https://github.com/vim/vim/commit/faf250c9e4f6f9fa5db38d9373735e77ba438a90
-rw-r--r--test/functional/ui/popupmenu_spec.lua16
-rw-r--r--test/old/testdir/test_popup.vim4
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)