summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-bar-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-03-02 20:03:44 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-03-02 20:03:44 +0100
commit3d8553316f391e62ab6982b3e16889351b8f525d (patch)
treee71a2fbab4185b7f676b0932cf8a242675d8b096 /src/gui/curses/gui-curses-bar-window.c
parentc905dbbf9be83cea73872b1d704765c04383b22f (diff)
downloadweechat-3d8553316f391e62ab6982b3e16889351b8f525d.zip
Reset style (bold/underline/reverse) before setting color when displaying bar items
Diffstat (limited to 'src/gui/curses/gui-curses-bar-window.c')
-rw-r--r--src/gui/curses/gui-curses-bar-window.c4
1 files 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);