summaryrefslogtreecommitdiff
path: root/src/client.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.hh')
-rw-r--r--src/client.hh19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/client.hh b/src/client.hh
index f16bd09b..7a0c8571 100644
--- a/src/client.hh
+++ b/src/client.hh
@@ -7,6 +7,7 @@
#include "safe_ptr.hh"
#include "utils.hh"
#include "option_manager.hh"
+#include "enum.hh"
namespace Kakoune
{
@@ -84,6 +85,24 @@ private:
SafePtr<Buffer> m_last_buffer;
};
+enum class Autoreload
+{
+ Yes,
+ No,
+ Ask
+};
+
+constexpr Array<EnumDesc<Autoreload>, 5> enum_desc(Autoreload)
+{
+ return { {
+ { Autoreload::Yes, "yes" },
+ { Autoreload::No, "no" },
+ { Autoreload::Ask, "ask" },
+ { Autoreload::Yes, "true" },
+ { Autoreload::No, "false" }
+ } };
+}
+
}
#endif // client_hh_INCLUDED