diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-30 21:50:18 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-30 21:50:18 +0100 |
commit | 05839983d45af29a383a8e702753eb9617b4e260 (patch) | |
tree | 59f0994232c4a5e5dc01e7f33cedf1087b8de00c /src/gui | |
parent | 6c59b0830c58d7889cf4be0b3b5b277715747e9d (diff) | |
download | weechat-05839983d45af29a383a8e702753eb9617b4e260.zip |
core: fix color when the delimiter is not followed by a background color (closes #1867)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c index 68c1e690d..e425d108e 100644 --- a/src/gui/gui-color.c +++ b/src/gui/gui-color.c @@ -424,7 +424,7 @@ gui_color_get_custom (const char *color_name) else str_fg = string_strndup (ptr_color_name, pos_delim - ptr_color_name); - pos_bg = pos_delim + 1; + pos_bg = (pos_delim[1]) ? pos_delim + 1 : NULL; } else { |