From ee3d5474b9fd5a8ad7a6daa339c0a478c93764ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 31 May 2017 21:37:40 +0200 Subject: [PATCH] fset: display "(no description)" instead of empty string for options without description --- src/plugins/fset/fset-bar-item.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/fset/fset-bar-item.c b/src/plugins/fset/fset-bar-item.c index e722cb247..d0d28b7b0 100644 --- a/src/plugins/fset/fset-bar-item.c +++ b/src/plugins/fset/fset-bar-item.c @@ -133,7 +133,8 @@ fset_bar_item_fset_cb (const void *pointer, void *data, weechat_color (weechat_config_string (fset_config_color_help_name)), ptr_fset_option->name, weechat_color ("bar_fg"), - ptr_fset_option->description, + (ptr_fset_option->description && ptr_fset_option->description[0]) ? + ptr_fset_option->description : _("(no description)"), weechat_color ("bar_delim"), weechat_color ("bar_fg"), weechat_color (weechat_config_string (fset_config_color_help_default_value)),