summaryrefslogtreecommitdiff
path: root/src/string_utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-07-24 20:20:51 +1000
committerMaxime Coste <mawww@kakoune.org>2018-07-24 20:26:24 +1000
commitb1187cf91dc0faeb54e3bab7b1c6fb84fe0a4a43 (patch)
tree4c7774c3bc492c8811d22b57d95db530477c369d /src/string_utils.hh
parent5f825cf0f55f7a0cee3bef76386d34810f6a2956 (diff)
Quote every option type but integral types
Opt-in quoting was a bad choice, lets default to opt-out with all integral types non quoted.
Diffstat (limited to 'src/string_utils.hh')
-rw-r--r--src/string_utils.hh1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/string_utils.hh b/src/string_utils.hh
index 0a6c2594..558ba62f 100644
--- a/src/string_utils.hh
+++ b/src/string_utils.hh
@@ -68,7 +68,6 @@ Optional<int> str_to_int_ifp(StringView str);
inline String option_to_string(StringView opt) { return opt.str(); }
inline String option_from_string(Meta::Type<String>, StringView str) { return str.str(); }
inline bool option_add(String& opt, StringView val) { opt += val; return not val.empty(); }
-constexpr bool option_needs_quoting(Meta::Type<String>) { return true; }
template<size_t N>
struct InplaceString