summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-08-12 22:11:58 +0700
committerMaxime Coste <mawww@kakoune.org>2017-08-12 22:11:58 +0700
commit1b1239b25a0b3d6186d1de1f72837cc4a307e70d (patch)
tree55caef377372cc92bfb66ceaae16a9162df49052 /src/input_handler.hh
parent407c84666cf0d94148ded5f6c2ea6a44fa27acfc (diff)
Remove size redundancy in enum_desc function declaration
The need to have the array size in the return type was redundant with the actual list of elements.
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 4287f172..71d93220 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -136,13 +136,13 @@ enum class AutoInfo
constexpr bool with_bit_ops(Meta::Type<AutoInfo>) { return true; }
-constexpr Array<EnumDesc<AutoInfo>, 3> enum_desc(Meta::Type<AutoInfo>)
+constexpr auto enum_desc(Meta::Type<AutoInfo>)
{
- return { {
+ return make_array<EnumDesc<AutoInfo>>({
{ AutoInfo::Command, "command"},
{ AutoInfo::OnKey, "onkey"},
{ AutoInfo::Normal, "normal" }
- } };
+ });
}
bool show_auto_info_ifn(StringView title, StringView info, AutoInfo mask, const Context& context);