From 38d372567bab6f55d82d1e672485e8b9b23e59b2 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 5 Aug 2016 09:43:33 +0100 Subject: [PATCH] Do not force exec to run in normal mode anymore, run in the current mode --- src/commands.cc | 4 +--- 1 file changed, 1 insertion(+), 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 : execute given keys in normal mode as if entered by user", + "exec : 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);