summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-08-03 20:37:44 +1000
committerMaxime Coste <mawww@kakoune.org>2022-08-03 20:37:44 +1000
commit31e9fc3cefcbea03d4eaad75ed0dab3da8f3dc6f (patch)
tree30cc92b8d541a3c750fc522c808b7a0ece99e63a /src
parentfa209a9a97c652dffd2986e5e97b55b5dc4826a2 (diff)
parent395f43837898a1a1ac19755e479ad6aa1a574c25 (diff)
Merge remote-tracking branch 'krobelus/history-in-mappings'
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc1
-rw-r--r--src/normal.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/commands.cc b/src/commands.cc
index 84e0fdf3..46481b9d 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -2621,6 +2621,7 @@ void enter_user_mode(Context& context, String mode_name, KeymapMode mode, bool l
auto& mapping = context.keymaps().get_mapping(key, mode);
ScopedSetBool disable_keymaps(context.keymaps_disabled());
+ ScopedSetBool disable_history(context.history_disabled());
InputHandler::ScopedForceNormal force_normal{context.input_handler(), {}};
diff --git a/src/normal.cc b/src/normal.cc
index 09aad6f8..68a5fd6f 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -2014,6 +2014,7 @@ void exec_user_mappings(Context& context, NormalParams params)
auto& mapping = context.keymaps().get_mapping(key, KeymapMode::User);
ScopedSetBool disable_keymaps(context.keymaps_disabled());
+ ScopedSetBool disable_history(context.history_disabled());
InputHandler::ScopedForceNormal force_normal{context.input_handler(), params};