1
1
mirror of https://github.com/tstack/lnav.git synced 2024-09-11 21:07:39 +03:00

[view_curses] check for -1 bg

Related to #1245
This commit is contained in:
Tim Stack 2024-03-30 21:38:55 -07:00
parent f06b68640a
commit 3a63791b22

View File

@ -430,7 +430,9 @@ view_curses::mvwattrline(WINDOW* window,
short cur_fg, cur_bg;
pair_content(cur_pair, &cur_fg, &cur_bg);
if (fg_color[lpc] != -1 && bg_color[lpc] == -1) {
if (fg_color[lpc] != -1 && bg_color[lpc] == -1
&& base_attrs.ta_bg_color.value_or(0) >= 0)
{
const auto& fg_color_info
= view_colors::vc_active_palette->tc_palette[fg_color[lpc]];
const auto& bg_color_info