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/array_view.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/array_view.hh')
| -rw-r--r-- | src/array_view.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array_view.hh b/src/array_view.hh index 52c89ac2..6a363656 100644 --- a/src/array_view.hh +++ b/src/array_view.hh @@ -32,7 +32,7 @@ public: template<typename Container, typename = std::enable_if_t<sizeof(decltype(*std::declval<Container>().data())) == sizeof(T)>> - constexpr ArrayView(const Container& c) + constexpr ArrayView(Container&& c) : m_pointer(c.data()), m_size(c.size()) {} constexpr ArrayView(const std::initializer_list<T>& v) |
