1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

core: fix current color/background after reset of color

Bug was visible with such colored string in IRC:

 ^Cc7,5 one ^Cc ^Cc7 two

Before the fix, the word "two" had a red background.
The "^Cc" should reset both color + background, so now it does not have
a background any more.
This commit is contained in:
Sebastien Helleu
2013-11-19 19:58:10 +01:00
parent b5db21d6c4
commit 6716985d27
+3
View File
@@ -307,6 +307,9 @@ gui_window_reset_style (WINDOW *window, int weechat_color)
void
gui_window_reset_color (WINDOW *window, int weechat_color)
{
gui_window_current_style_fg = gui_color[weechat_color]->foreground;
gui_window_current_style_bg = gui_color[weechat_color]->background;
wattron (window, COLOR_PAIR(gui_color_weechat_get_pair (weechat_color)) |
gui_color[weechat_color]->attributes);
}