diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-06-10 11:48:49 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-06-10 11:48:49 +0200 |
commit | 91017cb06c9062549c4f0d40b48bf4910cf3a40f (patch) | |
tree | 3ff5acf3a180ec56fb1e815f2572c68d0c78fbec | |
parent | e20592f32d8e87e44453da18615383165e456494 (diff) | |
download | weechat-91017cb06c9062549c4f0d40b48bf4910cf3a40f.zip |
core: remove extra space after empty prefix (when prefix for action, error, join, network or quit is set to empty string) (bug #39218)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/gui/gui-chat.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,7 @@ WeeChat ChangeLog ================= Sébastien Helleu <flashcode@flashtux.org> -v0.4.2-dev, 2013-06-08 +v0.4.2-dev, 2013-06-10 This document lists all changes for each version. @@ -14,6 +14,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] Version 0.4.2 (under dev!) -------------------------- +* core: remove extra space after empty prefix (when prefix for action, error, + join, network or quit is set to empty string) (bug #39218) * core: add option weechat.network.proxy_curl (task #12651) * core: add "proxy" infolist and hdata * core: fix random crash on mouse actions (bug #39094) diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index 3fe661635..ba665ea7d 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -108,7 +108,7 @@ gui_chat_prefix_build () pos_color = strstr (ptr_prefix, "${"); snprintf(prefix, sizeof (prefix), "%s%s\t", - (!pos_color || (pos_color > ptr_prefix)) ? GUI_COLOR(prefix_color[i]) : "", + (ptr_prefix[0] && (!pos_color || (pos_color > ptr_prefix))) ? GUI_COLOR(prefix_color[i]) : "", ptr_prefix); if (pos_color) |