summaryrefslogtreecommitdiff
path: root/src/insert_completer.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-06-27 13:33:50 +1000
committerMaxime Coste <mawww@kakoune.org>2020-06-27 13:33:50 +1000
commitfc3e5ea419aa79c7adf38a9252586d867b3eb19b (patch)
tree95d82f8658ea2797fbf35aad6cb6ce846e479e7a /src/insert_completer.hh
parent099b83d922aff0bd19ffc1a10a729afa07de91fb (diff)
Refactor how InsetCompletionHide hook parameter is computed
Keep track of inserted ranges instead of trying to re-derive them. Fixes #3556
Diffstat (limited to 'src/insert_completer.hh')
-rw-r--r--src/insert_completer.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/insert_completer.hh b/src/insert_completer.hh
index 1270d732..b3c7480d 100644
--- a/src/insert_completer.hh
+++ b/src/insert_completer.hh
@@ -105,6 +105,7 @@ private:
OptionManager& m_options;
const FaceRegistry& m_faces;
InsertCompletion m_completions;
+ Vector<BufferRange> m_inserted_ranges;
int m_current_candidate = -1;
using CompleteFunc = InsertCompletion (const SelectionList& sels,