summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-02-21 10:08:48 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-02-21 10:08:48 +0100
commit8c324c238d235a7c701b51f4526779ef17cba447 (patch)
tree711a7180d0d4ce74f1d7eb7a906ffd67c2fbf49e /src
parent6e1e8e9ed835800c548d732916d8cbfb2395167a (diff)
downloadweechat-8c324c238d235a7c701b51f4526779ef17cba447.zip
Fix bug with bar background after text with background color (bug #28157)
Diffstat (limited to 'src')
-rw-r--r--src/gui/curses/gui-curses-bar-window.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c
index 7ca82492b..e8a4483e3 100644
--- a/src/gui/curses/gui-curses-bar-window.c
+++ b/src/gui/curses/gui-curses-bar-window.c
@@ -556,12 +556,10 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
{
some_data_not_displayed = 1;
}
- while (x < bar_window->width)
- {
- gui_bar_window_print_string (bar_window,
- &x, &y,
- " ", 0, 0);
- }
+ 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]));
+ wclrtobot (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar);
x = 0;
y++;
}