diff --git a/src/commands.cc b/src/commands.cc index 46481b9d..d3843a8d 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1452,7 +1452,7 @@ KeymapMode parse_keymap_mode(StringView str, const KeymapManager::UserModeList& return (KeymapMode)(std::distance(user_modes.begin(), it) + offset); } -static constexpr Array modes = { "normal", "insert", "menu", "prompt", "goto", "view", "user", "object" }; +static constexpr auto modes = make_array({ "normal", "insert", "menu", "prompt", "goto", "view", "user", "object" }); const CommandDesc debug_cmd = { "debug",