Show the default values for -save-regs in autoinfo of exec/eval
They are documented in ":doc execeval" but it seems like a good idea to make this info more prominent.
This commit is contained in:
parent
d999a00b0c
commit
253b13281e
|
@ -1926,7 +1926,6 @@ ParameterDesc make_context_wrap_params_impl(Array<HashItem<String, SwitchDesc>,
|
|||
{ "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 [<switches>] <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 [<switches>] <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" }}
|
||||
}}),
|
||||
|
|
Loading…
Reference in New Issue
Block a user