Do not force exec to run in normal mode anymore, run in the current mode

This commit is contained in:
Maxime Coste 2016-08-05 09:43:33 +01:00
parent 967a55d09f
commit 38d372567b

View File

@ -1524,7 +1524,7 @@ void context_wrap(const ParametersParser& parser, Context& context, Func func)
const CommandDesc exec_string_cmd = {
"exec",
nullptr,
"exec <switches> <keys>: execute given keys in normal mode as if entered by user",
"exec <switches> <keys>: execute given keys as if entered by user",
context_wrap_params,
CommandFlags::None,
CommandHelper{},
@ -1539,8 +1539,6 @@ const CommandDesc exec_string_cmd = {
keys.insert(keys.end(), param_keys.begin(), param_keys.end());
}
InputHandler::ScopedForceNormal force_normal{context.input_handler()};
ScopedEdition edition(context);
for (auto& key : keys)
context.input_handler().handle_key(key);