Fix color behavior on some terminals.

Fixes #635.
This commit is contained in:
Hisham Muhammad
2018-02-05 07:01:12 +01:00
parent c50440f165
commit ac2dff2881
3 changed files with 19 additions and 15 deletions

View File

@ -78,6 +78,7 @@ static HandlerResult ColorsPanel_eventHandler(Panel* super, int ch) {
this->settings->changed = true;
const Header* header = this->scr->header;
CRT_setColors(mark);
clear();
Panel* menu = (Panel*) Vector_get(this->scr->panels, 0);
Header_draw(header);
RichString_setAttr(&(super->header), CRT_colors[PANEL_HEADER_FOCUS]);