summaryrefslogtreecommitdiff
path: root/src/insert_completer.hh
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/insert_completer.hh
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/insert_completer.hh')
-rw-r--r--src/insert_completer.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/insert_completer.hh b/src/insert_completer.hh
index 3d5f2ca6..c624639d 100644
--- a/src/insert_completer.hh
+++ b/src/insert_completer.hh
@@ -5,6 +5,7 @@
#include "option.hh"
#include "display_buffer.hh"
#include "vector.hh"
+#include "utils.hh"
#include "optional.hh"
@@ -78,7 +79,7 @@ public:
InsertCompleter& operator=(const InsertCompleter&) = delete;
~InsertCompleter();
- void select(int index, bool relative, Vector<Key>* keystrokes);
+ void select(int index, bool relative, FunctionRef<void (Key)> record_key);
void update(bool allow_implicit);
void try_accept();
void reset();