summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-07-22 17:43:37 +1000
committerMaxime Coste <mawww@kakoune.org>2024-07-22 20:22:14 +1000
commite938d724f16ef06cbc97a4fedc20d56edf34e7f2 (patch)
treebc5828353bdc26259b59bf6eadf8e7bb08b9f062 /src/normal.cc
parent6f562aa0add09092d390f7ea2691959490234ed0 (diff)
Handle word completion when recording macros
Make last insert and macro recording closer together, paving the way towards moving last insert to a register. Use a FunctionRef for insert completer key insertion support.
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.cc b/src/normal.cc
index af4d5fb1..9f1d3de7 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -1601,7 +1601,7 @@ void replay_macro(Context& context, NormalParams params)
do
{
for (auto& key : keys)
- context.input_handler().handle_key(key);
+ context.input_handler().handle_key(key, true);
} while (--params.count > 0);
}
@@ -2073,7 +2073,7 @@ void exec_user_mappings(Context& context, NormalParams params)
ScopedEdition edition(context);
ScopedSelectionEdition selection_edition{context};
for (auto& key : context.keymaps().get_mapping_keys(key, KeymapMode::User))
- context.input_handler().handle_key(key);
+ context.input_handler().handle_key(key, true);
}, "user mapping",
build_autoinfo_for_mapping(context, KeymapMode::User, {}));
}