diff --git a/src/lnav_config.hh b/src/lnav_config.hh index 27554345..c23c4624 100644 --- a/src/lnav_config.hh +++ b/src/lnav_config.hh @@ -107,7 +107,7 @@ struct key_map { struct _lnav_config { std::string lc_ui_clock_format; bool lc_ui_dim_text; - bool lc_ui_default_colors; + bool lc_ui_default_colors{true}; std::string lc_ui_keymap; std::string lc_ui_theme; std::unordered_map lc_ui_keymaps; diff --git a/src/view_curses.cc b/src/view_curses.cc index 1e2bfc92..ef82daba 100644 --- a/src/view_curses.cc +++ b/src/view_curses.cc @@ -619,6 +619,13 @@ inline attr_t attr_for_colors(int &pair_base, short fg, short bg) if (bg == COLOR_BLACK) { bg = -1; } + } else { + if (fg == -1) { + fg = COLOR_WHITE; + } + if (bg == -1) { + bg = COLOR_BLACK; + } } }