From dca9bccc6ac7fb1bb676d193bc22376a2e7082e3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 14 Mar 2016 20:58:35 +0000 Subject: [PATCH] Disable key mapping handling when executing a user mapping Fixes #629 --- src/normal.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/normal.cc b/src/normal.cc index f0299787..0cfd48ad 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1457,6 +1457,7 @@ void exec_user_mappings(Context& context, NormalParams params) return; auto mapping = context.keymaps().get_mapping(key, KeymapMode::User); + ScopedSetBool disable_keymaps(context.keymaps_disabled()); ScopedEdition edition(context); for (auto& key : mapping) context.input_handler().handle_key(key);