summaryrefslogtreecommitdiff
path: root/src/color.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-05-27 13:00:04 +1000
committerMaxime Coste <mawww@kakoune.org>2018-05-27 13:00:50 +1000
commitb5693c6253bd99af5d27488562f9598c1c45c85d (patch)
tree6bf3d0292f31b06e589a2256cd96500cf9e9accc /src/color.hh
parent2617f5e022b8eaaaf9f051e0c1f249c276e3e9fc (diff)
Refactor option_from_string to return directly the option value
Diffstat (limited to 'src/color.hh')
-rw-r--r--src/color.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/color.hh b/src/color.hh
index ae8046ab..d42b112b 100644
--- a/src/color.hh
+++ b/src/color.hh
@@ -2,6 +2,7 @@
#define color_hh_INCLUDED
#include "hash.hh"
+#include "meta.hh"
namespace Kakoune
{
@@ -59,7 +60,7 @@ Color str_to_color(StringView color);
String to_string(Color color);
String option_to_string(Color color);
-void option_from_string(StringView str, Color& color);
+Color option_from_string(Meta::Type<Color>, StringView str);
bool is_color_name(StringView color);