summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorSeerLite <seerlite@disroot.org>2025-04-15 19:09:06 -0400
committerSeerLite <seerlite@disroot.org>2025-04-15 19:09:06 -0400
commitbdf6b6eff468b2c2fd2f10e2247192a8fc4559ba (patch)
tree38d5a41a909ad70e4ec4d8fe8809708478384b72 /src/normal.cc
parent922607221b8e5b2683babb9ebeba9372e97b836c (diff)
Disable keymaps when playing macro
Macros are already recorded with keymaps resolved, so there's no need to resolve them again.
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 8a8b958d..a31957d4 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -1610,6 +1610,7 @@ void replay_macro(Context& context, NormalParams params)
auto keys = parse_keys(reg_val[0]);
ScopedEdition edition(context);
ScopedSelectionEdition selection_edition{context};
+ ScopedSetBool disable_keymaps(context.keymaps_disabled());
do
{
for (auto& key : keys)