Support :set -add on strings, using concatenation

This commit is contained in:
Maxime Coste 2015-10-22 13:21:59 +01:00
parent 64b7ccd107
commit 5938712d1f

View File

@ -16,6 +16,7 @@ namespace Kakoune
inline String option_to_string(StringView opt) { return opt.str(); }
inline void option_from_string(StringView str, String& opt) { opt = str.str(); }
inline bool option_add(String& opt, const String& val) { opt += val; return not val.empty(); }
inline String option_to_string(int opt) { return to_string(opt); }
inline void option_from_string(StringView str, int& opt) { opt = str_to_int(str); }