diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-09-25 13:29:53 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-09-25 13:29:53 +0100 |
| commit | ecf8047bcc61ac87e9745f2e8600785972ff84cb (patch) | |
| tree | 8c3249cdc10c71b725573a8f9ef6280f9515d6d5 /src/selectors.hh | |
| parent | 4c4d3cdd382438283a4774ef5d4cffb1d39181cf (diff) | |
Fix reverse search when extending
Diffstat (limited to 'src/selectors.hh')
| -rw-r--r-- | src/selectors.hh | 2 |
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, |
