From 3d8553316f391e62ab6982b3e16889351b8f525d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 2 Mar 2011 20:03:44 +0100 Subject: [PATCH] Reset style (bold/underline/reverse) before setting color when displaying bar items --- src/gui/curses/gui-curses-bar-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c index 25ee7fd0d..e6417ddf6 100644 --- a/src/gui/curses/gui-curses-bar-window.c +++ b/src/gui/curses/gui-curses-bar-window.c @@ -262,11 +262,11 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window, break; case GUI_COLOR_RESET_CHAR: string++; + gui_window_remove_color_style (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, + A_BOLD | A_UNDERLINE | A_REVERSE); gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]), CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG])); - gui_window_remove_color_style (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, - A_BOLD | A_UNDERLINE | A_REVERSE); break; default: next_char = utf8_next_char (string);