From bde726d0342f32ff2e9cb464a351450a43ecea9f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 15 Jul 2018 09:45:17 +1000 Subject: Change autoshowcompl to auto_complete with insert|prompt possible values --- src/input_handler.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index d5c9f7b4..600d78b8 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -152,6 +152,22 @@ constexpr auto enum_desc(Meta::Type) }); } +enum class AutoComplete +{ + None = 0, + Insert = 0b01, + Prompt = 0b10 +}; +constexpr bool with_bit_ops(Meta::Type) { return true; } + +constexpr auto enum_desc(Meta::Type) +{ + return make_array, 3>({ + { AutoComplete::Insert, "insert"}, + { AutoComplete::Prompt, "prompt" } + }); +} + bool show_auto_info_ifn(StringView title, StringView info, AutoInfo mask, const Context& context); void hide_auto_info_ifn(const Context& context, bool hide); -- cgit v1.2.3