From e938d724f16ef06cbc97a4fedc20d56edf34e7f2 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 22 Jul 2024 17:43:37 +1000 Subject: 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. --- src/normal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/normal.cc') 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, {})); } -- cgit v1.2.3