diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-06-27 13:33:50 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-06-27 13:33:50 +1000 |
| commit | fc3e5ea419aa79c7adf38a9252586d867b3eb19b (patch) | |
| tree | 95d82f8658ea2797fbf35aad6cb6ce846e479e7a /src/range.hh | |
| parent | 099b83d922aff0bd19ffc1a10a729afa07de91fb (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.hh | 2 |
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; } }; } |
