diff --git a/src/commands.cc b/src/commands.cc index ebede998..84e0fdf3 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -1926,7 +1926,6 @@ ParameterDesc make_context_wrap_params_impl(Array, { "buffer", { true, "run in a disposable context for each given buffer in the comma separated list argument" } }, { "draft", { false, "run in a disposable context" } }, { "itersel", { false, "run once for each selection with that selection as the only one" } }, - { "save-regs", { true, "restore all given registers after execution" } }, std::move(additional_params[P])...}, ParameterDesc::Flags::SwitchesOnlyAtStart, 1 }; @@ -2089,7 +2088,8 @@ const CommandDesc execute_keys_cmd = { "execute-keys", "exec", "execute-keys [] : execute given keys as if entered by user", - make_context_wrap_params<2>({{ + make_context_wrap_params<3>({{ + {"save-regs", {true, "restore all given registers after execution (default: '/\"|^@:')"}}, {"with-maps", {false, "use user defined key mapping when executing keys"}}, {"with-hooks", {false, "trigger hooks while executing keys"}} }}), @@ -2112,7 +2112,8 @@ const CommandDesc evaluate_commands_cmd = { "evaluate-commands", "eval", "evaluate-commands [] ...: execute commands as if entered by user", - make_context_wrap_params<2>({{ + make_context_wrap_params<3>({{ + {"save-regs", {true, "restore all given registers after execution (default: '')"}}, {"no-hooks", { false, "disable hooks while executing commands" }}, {"verbatim", { false, "do not reparse argument" }} }}),