feat(ui): statusline text inherits highlights #29976

Changes apply to the winbar, statusline, and tabline text.
This commit is contained in:
Riley Bruins
2024-10-12 10:57:31 -07:00
committed by GitHub
parent 4b90952851
commit e049c6e4c0
7 changed files with 74 additions and 10 deletions

View File

@@ -430,7 +430,7 @@ static void win_redr_custom(win_T *wp, bool draw_winbar, bool draw_ruler)
if (hltab[n].userhl == 0) {
curattr = attr;
} else if (hltab[n].userhl < 0) {
curattr = syn_id2attr(-hltab[n].userhl);
curattr = hl_combine_attr(attr, syn_id2attr(-hltab[n].userhl));
} else if (wp != NULL && wp != curwin && wp->w_status_height != 0) {
curattr = highlight_stlnc[hltab[n].userhl - 1];
} else {