fix(highlight): make Ignore hidden by default #41115

Problem:
Ignore is linked to Normal by default, making the text visible instead
of hidden.

Solution:
Replace the default link with an explicit highlight definition using
ctermfg=0 guifg=bg.
This commit is contained in:
not_compiled
2026-08-04 23:13:22 +05:30
committed by GitHub
parent ceccca7780
commit f6de99d028
2 changed files with 2 additions and 2 deletions

View File

@@ -145,6 +145,7 @@ static const char e_missing_argument_str[]
static const char *highlight_init_both[] = {
"Cursor guifg=bg guibg=fg",
"CursorLineNr gui=bold cterm=bold",
"Ignore guifg=bg ctermfg=0",
"PmenuMatch gui=bold cterm=bold",
"PmenuMatchSel gui=bold cterm=bold",
"PmenuSel gui=reverse cterm=reverse,underline blend=0",
@@ -219,7 +220,6 @@ static const char *highlight_init_both[] = {
// Used by HLF_8 (very common). None of the HLF_* things use the other Special* groups.
"default link SpecialKey Special",
"default link Dimmed Comment",
"default link Ignore Normal",
// Built-in LSP
"default link LspCodeLens NonText",

View File

@@ -263,7 +263,7 @@ describe('ui/cursor', function()
m.attr = { background = Screen.colors.DarkGray }
end
if m.id_lm then
m.id_lm = 78
m.id_lm = 79
m.attr_lm = {}
end
end