diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-07-22 15:51:32 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-07-22 15:51:32 +1000 |
| commit | 7b9f162e7d8bccee2eb47cecb4cf0430b9afef2d (patch) | |
| tree | deb404928cdd77bc3034f7b3de4731388cb78d95 /src/option.hh | |
| parent | 019150ba527532e5a7ace10363ab73505c116117 (diff) | |
Opt-in types for quoting of option lists
This avoid quoting ints in int-lists for example, as they do not
risk containing whitespaces.
Fixes #2223
Diffstat (limited to 'src/option.hh')
| -rw-r--r-- | src/option.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/option.hh b/src/option.hh index 19ca709f..fd2de5c5 100644 --- a/src/option.hh +++ b/src/option.hh @@ -42,6 +42,11 @@ option_add_from_strings(T& opt, ConstArrayView<String> strs) return option_add(opt, strs[0]); } +template<typename T> +constexpr bool option_needs_quoting(Meta::Type<T>) +{ + return false; +} template<typename P, typename T> struct PrefixedList |
