summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 5f5fb177..ab08da9b 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -1456,6 +1456,9 @@ void exec_user_mappings(Context& context, NormalParams params)
auto mapping = context.keymaps().get_mapping(key, KeymapMode::User);
ScopedSetBool disable_keymaps(context.keymaps_disabled());
+
+ InputHandler::ScopedForceNormal force_normal{context.input_handler()};
+
ScopedEdition edition(context);
for (auto& key : mapping)
context.input_handler().handle_key(key);