1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-25 12:36:11 +03:00

Fix missing modes in :map completion and docstring

This commit is contained in:
Maxime Coste 2015-02-05 13:56:16 +00:00
parent d59b36b816
commit 5339f94eb8

View File

@ -997,6 +997,8 @@ const CommandDesc map_key_cmd = {
" insert\n" " insert\n"
" menu\n" " menu\n"
" prompt\n" " prompt\n"
" goto\n"
" view\n"
" user\n", " user\n",
ParameterDesc{ SwitchMap{}, ParameterDesc::Flags::None, 4, 4 }, ParameterDesc{ SwitchMap{}, ParameterDesc::Flags::None, 4, 4 },
CommandFlags::None, CommandFlags::None,
@ -1009,7 +1011,7 @@ const CommandDesc map_key_cmd = {
complete(params[0], pos_in_token, scopes) }; complete(params[0], pos_in_token, scopes) };
if (token_to_complete == 1) if (token_to_complete == 1)
{ {
constexpr const char* modes[] = { "normal", "insert", "menu", "prompt", "goto", "view" }; constexpr const char* modes[] = { "normal", "insert", "menu", "prompt", "goto", "view", "user" };
return { 0_byte, params[1].length(), return { 0_byte, params[1].length(),
complete(params[1], pos_in_token, modes) }; complete(params[1], pos_in_token, modes) };
} }