1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

Fix display of extended foreground color on non-default background in bars

This commit is contained in:
Sebastien Helleu
2011-02-05 11:11:20 +01:00
parent 9932f06710
commit f2be50f4b1
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
string += 3;
}
}
if (str_fg[0] && (string[0] == ','))
if (string[0] == ',')
{
string++;
if (string[0] == GUI_COLOR_PAIR_CHAR)
+4 -2
View File
@@ -380,8 +380,9 @@ gui_bar_item_get_value (const char *name, struct t_gui_bar *bar,
if (CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_DELIM]) & GUI_COLOR_PAIR_FLAG)
{
snprintf (delimiter_color, sizeof (delimiter_color),
"%c%c%05d",
"%c%c%c%05d",
GUI_COLOR_COLOR_CHAR,
GUI_COLOR_FG_CHAR,
GUI_COLOR_PAIR_CHAR,
CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_DELIM]) & GUI_COLOR_PAIR_MASK);
}
@@ -396,8 +397,9 @@ gui_bar_item_get_value (const char *name, struct t_gui_bar *bar,
if (CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_FG]) & GUI_COLOR_PAIR_FLAG)
{
snprintf (bar_color, sizeof (bar_color),
"%c%c%05d",
"%c%c%c%05d",
GUI_COLOR_COLOR_CHAR,
GUI_COLOR_FG_CHAR,
GUI_COLOR_PAIR_CHAR,
CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_FG]) & GUI_COLOR_PAIR_MASK);
}