neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit c17caca9b7a5e11c1262a0d8409075d9168980d3
parent 44f70b4be146ee4d3a28cbd96fb966dd579de457
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sun, 12 Jan 2025 16:35:07 +0800

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

Diffstat:
Mtest/functional/ui/popupmenu_spec.lua | 16++++++++++++++++
Mtest/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 @@ -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 @@ -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)