curses STATUS_HILITES
Honor hilite_status rules specifying color even if curses-specific option 'guicolor' is off. Update status from scratch when 'O' is used to manipulate hilite_status rules.
This commit is contained in:
@@ -87,7 +87,10 @@ curses_toggle_color_attr(WINDOW *win, int color, int attr, int onoff)
|
||||
int curses_color;
|
||||
|
||||
/* if color is disabled, just show attribute */
|
||||
if ((win == mapwin) ? !iflags.wc_color : !iflags.wc2_guicolor) {
|
||||
if ((win == mapwin) ? !iflags.wc_color
|
||||
/* statuswin is for #if STATUS_HILITES
|
||||
but doesn't need to be conditional */
|
||||
: !(iflags.wc2_guicolor || win == statuswin)) {
|
||||
#endif
|
||||
if (attr != NONE) {
|
||||
if (onoff == ON)
|
||||
|
||||
Reference in New Issue
Block a user