diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-08-05 09:43:33 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-08-05 09:43:33 +0100 |
| commit | 38d372567bab6f55d82d1e672485e8b9b23e59b2 (patch) | |
| tree | a1cc440ad36a350fc628e035b03ed3021d63fb01 | |
| parent | 967a55d09f9b33ccc8f213bbf386ed90d001c1e6 (diff) | |
Do not force exec to run in normal mode anymore, run in the current mode
| -rw-r--r-- | src/commands.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/commands.cc b/src/commands.cc index 28574a90..410752d5 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -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); |
