summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-05-26 16:19:05 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-05-26 16:19:05 +0200
commitf93eec488e1826d9fb1a49a8aecbaa6b4ab2647b (patch)
tree29ab0ff5e58663b9d1a92bdb083828010ac31a5d /src/core/wee-command.c
parent114fe22a80833eebbf6f12bced5ab62081bff1ad (diff)
downloadweechat-f93eec488e1826d9fb1a49a8aecbaa6b4ab2647b.zip
Fix display bug with description of option in /help option if description is empty
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index c6a6a5b61..1def76d16 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -1573,7 +1573,8 @@ command_help (void *data, struct t_gui_buffer *buffer,
GUI_COLOR(GUI_COLOR_CHAT));
gui_chat_printf (NULL, " %s: %s",
_("description"),
- (ptr_option->description) ? _(ptr_option->description) : "");
+ (ptr_option->description && ptr_option->description[0]) ?
+ _(ptr_option->description) : "");
switch (ptr_option->type)
{
case CONFIG_OPTION_TYPE_BOOLEAN: