1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-25 10:32:19 +03:00

Disable key mapping handling when executing a user mapping

Fixes #629
This commit is contained in:
Maxime Coste 2016-03-14 20:58:35 +00:00
parent b53f1271a2
commit dca9bccc6a

View File

@ -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);