summaryrefslogtreecommitdiff
path: root/src/selectors.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-09-25 13:29:53 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-09-25 13:29:53 +0100
commitecf8047bcc61ac87e9745f2e8600785972ff84cb (patch)
tree8c3249cdc10c71b725573a8f9ef6280f9515d6d5 /src/selectors.hh
parent4c4d3cdd382438283a4774ef5d4cffb1d39181cf (diff)
Fix reverse search when extending
Diffstat (limited to 'src/selectors.hh')
-rw-r--r--src/selectors.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selectors.hh b/src/selectors.hh
index 6382b0da..5107226e 100644
--- a/src/selectors.hh
+++ b/src/selectors.hh
@@ -281,7 +281,7 @@ Selection find_next_match(const Buffer& buffer, const Selection& sel, const Rege
if (direction == Backward)
std::swap(begin, end);
- return keep_direction({begin.coord(), end.coord(), std::move(captures)}, sel);
+ return {begin.coord(), end.coord(), std::move(captures)};
}
void select_all_matches(SelectionList& selections,