diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-07-06 19:00:16 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-07-08 13:28:40 +0200 |
commit | 66cb9f6ea2e534887e73c885d3f131710c48382d (patch) | |
tree | 1d21dafd605395a57078f9d82d8f525bad588bb6 /src/plugins/fset/fset-option.h | |
parent | 8f9d88edd0106c92daf1ce624638f037f7e8fe0d (diff) | |
download | weechat-66cb9f6ea2e534887e73c885d3f131710c48382d.zip |
core: add option type "enum" (closes #1973)
The type "enum" replaces type "integer" when used with string values.
For compatibility, any option created with type "integer" and string values is
automatically created to "enum" on creation, with no error.
Diffstat (limited to 'src/plugins/fset/fset-option.h')
-rw-r--r-- | src/plugins/fset/fset-option.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-option.h b/src/plugins/fset/fset-option.h index 508db23f1..1d6041946 100644 --- a/src/plugins/fset/fset-option.h +++ b/src/plugins/fset/fset-option.h @@ -30,6 +30,7 @@ enum t_fset_option_type FSET_OPTION_TYPE_INTEGER, FSET_OPTION_TYPE_STRING, FSET_OPTION_TYPE_COLOR, + FSET_OPTION_TYPE_ENUM, /* number of option types */ FSET_OPTION_NUM_TYPES, }; |