1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

Fix display bug with description of option in /help option if description is empty

This commit is contained in:
Sebastien Helleu
2010-05-26 16:19:05 +02:00
parent 114fe22a80
commit f93eec488e
+2 -1
View File
@@ -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: