mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-02 00:46:42 +03:00
Remove useless Vector, use a ConstArrayView instead
This commit is contained in:
parent
268c214f56
commit
477f0700f0
@ -198,7 +198,7 @@ select_to_first_non_blank(const Buffer& buffer, const Selection& selection)
|
||||
Optional<Selection>
|
||||
select_matching(const Buffer& buffer, const Selection& selection)
|
||||
{
|
||||
Vector<Codepoint> matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' };
|
||||
ConstArrayView<Codepoint> matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' };
|
||||
Utf8Iterator it{buffer.iterator_at(selection.cursor()), buffer};
|
||||
auto match = matching_pairs.end();
|
||||
while (not is_eol(*it))
|
||||
|
Loading…
Reference in New Issue
Block a user