Properly set color of the state line 'border'

This commit is contained in:
Andrzej Rybczak
2017-03-26 10:10:17 +02:00
parent 55d2f4c70d
commit ad869df626

View File

@@ -737,11 +737,16 @@ void Status::Changes::flags()
if (!switch_state.empty()) if (!switch_state.empty())
*wHeader << NC::XY(COLS-switch_state.length()-3, 1) *wHeader << NC::XY(COLS-switch_state.length()-3, 1)
<< Config.state_line_color
<< "[" << "["
<< NC::FormattedColor::End(Config.state_line_color)
<< Config.state_flags_color << Config.state_flags_color
<< switch_state << switch_state
<< NC::FormattedColor::End(Config.state_flags_color) << NC::FormattedColor::End(Config.state_flags_color)
<< "]"; << Config.state_line_color
<< "]"
<< NC::FormattedColor::End(Config.state_line_color);
break; break;
case Design::Alternative: case Design::Alternative:
switch_state += '['; switch_state += '[';