Merge pull request #19348 from akinsho/bugfix/winbar-winhighlight

fix(winbar): make setting WinBar and WinBarNC in 'winhighlight' work
This commit is contained in:
zeertzjq
2022-07-15 09:56:17 +08:00
committed by GitHub
2 changed files with 33 additions and 3 deletions

View File

@@ -5316,7 +5316,7 @@ static void win_redr_custom(win_T *wp, bool draw_winbar, bool draw_ruler)
}
fillchar = wp->w_p_fcs_chars.wbr;
attr = (wp == curwin) ? HL_ATTR(HLF_WBR) : HL_ATTR(HLF_WBRNC);
attr = (wp == curwin) ? win_hl_attr(wp, HLF_WBR) : win_hl_attr(wp, HLF_WBRNC);
maxwidth = wp->w_width_inner;
use_sandbox = was_set_insecurely(wp, "winbar", 0);