summaryrefslogtreecommitdiff
path: root/src/plugins/fset/fset-option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fset/fset-option.c')
-rw-r--r--src/plugins/fset/fset-option.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c
index a18105e62..36e009159 100644
--- a/src/plugins/fset/fset-option.c
+++ b/src/plugins/fset/fset-option.c
@@ -372,6 +372,22 @@ fset_option_match_filter (struct t_fset_option *fset_option, const char *filter)
/* filter by modified values */
return (fset_option_value_is_changed (fset_option)) ? 1 : 0;
}
+ else if (strncmp (filter, "h=", 2) == 0)
+ {
+ /* filter by help text (translated) */
+ return (fset_option_string_match (
+ (fset_option->description && fset_option->description[0]) ?
+ _(fset_option->description) : "",
+ filter + 2)) ? 1 : 0;
+ }
+ else if (strncmp (filter, "he=", 3) == 0)
+ {
+ /* filter by help text (in English) */
+ return (fset_option_string_match (
+ (fset_option->description && fset_option->description[0]) ?
+ fset_option->description : "",
+ filter + 3)) ? 1 : 0;
+ }
else if (strncmp (filter, "==", 2) == 0)
{
/* filter by exact value */