summaryrefslogtreecommitdiff
path: root/src/selectors.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-01-31 11:10:18 +1100
committerMaxime Coste <mawww@kakoune.org>2018-01-31 11:10:18 +1100
commite41b4ee65da53b36cf26c494653a4e92bbee4091 (patch)
treeb91efc2ded323aa2637c1313f7e72ac3e1bddfae /src/selectors.cc
parentcfa497362c8f2b05d780fb7dd27f6b9d83fe60da (diff)
Change `m` to search until the end of the buffer instead of end of line
Fixes #1774 # Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'src/selectors.cc')
-rw-r--r--src/selectors.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selectors.cc b/src/selectors.cc
index 84be47b6..52c03088 100644
--- a/src/selectors.cc
+++ b/src/selectors.cc
@@ -230,9 +230,9 @@ select_matching(const Context& context, const Selection& selection)
auto& matching_pairs = context.options()["matching_pairs"].get<Vector<Codepoint, MemoryDomain::Options>>();
Utf8Iterator it{buffer.iterator_at(selection.cursor()), buffer};
auto match = matching_pairs.end();
- while (not is_eol(*it))
+ while (it != buffer.end())
{
- match = std::find(matching_pairs.begin(), matching_pairs.end(), *it);
+ match = find(matching_pairs, *it);
if (match != matching_pairs.end())
break;
++it;