diff --git a/src/selectors.cc b/src/selectors.cc index 87a4a345..962386cb 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -198,7 +198,7 @@ select_to_first_non_blank(const Buffer& buffer, const Selection& selection) Optional select_matching(const Buffer& buffer, const Selection& selection) { - Vector matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' }; + ConstArrayView matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' }; Utf8Iterator it{buffer.iterator_at(selection.cursor()), buffer}; auto match = matching_pairs.end(); while (not is_eol(*it))