summaryrefslogtreecommitdiff
path: root/src/range.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/range.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/range.hh')
-rw-r--r--src/range.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/range.hh b/src/range.hh
index eb8be269..21443b51 100644
--- a/src/range.hh
+++ b/src/range.hh
@@ -24,6 +24,8 @@ struct Range
{
return hash_values(range.begin, range.end);
}
+
+ bool empty() const { return begin == end; }
};
}