diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-06-04 10:33:06 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-06-04 10:33:06 +1000 |
| commit | a16de52f9cd929c05a0211ac0b19c6fa116bd524 (patch) | |
| tree | 4f6e0945d90596da90bb87e7a416723a35083f31 /src/input_handler.cc | |
| parent | 083bf82c235fa2821f279caa841c2765fbd81c68 (diff) | |
| parent | 66078243ec329a5d1d47864e9a24e6f1e44e85f3 (diff) | |
Merge remote-tracking branch 'krobelus/track-inserted-completions-better'
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 9b1857a8..d2fb8275 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1345,7 +1345,10 @@ public: selections.sort_and_merge_overlapping(); } else if (auto cp = key.codepoint()) + { + m_completer.try_accept(); insert(*cp); + } else if (key == ctrl('r')) { on_next_key_with_autoinfo(context(), "register", KeymapMode::None, @@ -1353,6 +1356,7 @@ public: auto cp = key.codepoint(); if (not cp or key == Key::Escape) return; + m_completer.try_accept(); insert(RegisterManager::instance()[*cp].get(context())); }, "enter register name", register_doc.str()); update_completions = false; @@ -1415,6 +1419,7 @@ public: [this, transient](Key key, Context&) { if (auto cp = get_raw_codepoint(key)) { + m_completer.try_accept(); insert(*cp); context().hooks().run_hook(Hook::InsertKey, key_to_str(key), context()); if (enabled() and not transient) |
