1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

Fix display bug with attributes like underlined in bars (bug #29889)

This commit is contained in:
Sebastien Helleu
2010-06-11 16:52:10 +02:00
parent adf74ec691
commit b54af6af0b
3 changed files with 9 additions and 10 deletions
+1
View File
@@ -15,6 +15,7 @@ Version 0.3.3 (under dev!)
(bug #29991)
* core: fix crash with hook_process (when timer is called on a deleted hook
process)
* core: fix display bug with attributes like underlined in bars (bug #29889)
* api: add function "string_expand_home", fix bug with replacement of home in
paths
* irc: use empty real name by default in config, instead of reading real name
+4
View File
@@ -285,6 +285,8 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
CONFIG_INTEGER(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]));
gui_window_set_custom_color_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
CONFIG_INTEGER(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);
string++;
break;
case GUI_COLOR_SET_WEECHAT_CHAR:
@@ -629,6 +631,8 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
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);
wclrtobot (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar);
}
while (x < bar_window->width)
+4 -10
View File
@@ -448,19 +448,13 @@ gui_bar_window_content_get_with_filling (struct t_gui_bar_window *bar_window,
return NULL;
snprintf (reinit_color, sizeof (reinit_color),
"%c%c%02d,%02d",
GUI_COLOR_COLOR_CHAR,
GUI_COLOR_FG_BG_CHAR,
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]),
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
"%c",
GUI_COLOR_RESET_CHAR);
length_reinit_color = strlen (reinit_color);
snprintf (reinit_color_space, sizeof (reinit_color_space),
"%c%c%02d,%02d ",
GUI_COLOR_COLOR_CHAR,
GUI_COLOR_FG_BG_CHAR,
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]),
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
"%c ",
GUI_COLOR_RESET_CHAR);
length_reinit_color_space = strlen (reinit_color_space);
content = NULL;