From ad869df626779d08342bbccb4fe32e800bc2eda4 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 26 Mar 2017 10:10:17 +0200 Subject: [PATCH] Properly set color of the state line 'border' --- src/status.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/status.cpp b/src/status.cpp index 2ec8c37f..bf0bc58d 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -737,11 +737,16 @@ void Status::Changes::flags() if (!switch_state.empty()) *wHeader << NC::XY(COLS-switch_state.length()-3, 1) + << Config.state_line_color << "[" + << NC::FormattedColor::End(Config.state_line_color) << Config.state_flags_color << switch_state << NC::FormattedColor::End(Config.state_flags_color) - << "]"; + << Config.state_line_color + << "]" + << NC::FormattedColor::End(Config.state_line_color); + break; case Design::Alternative: switch_state += '[';