diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-10-09 14:56:47 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-11-01 14:05:14 +0800 |
| commit | 1c9507465702a70ac9eb267ea7bb53c84c7304a0 (patch) | |
| tree | f275a5a6e47bf3b38fbe79e4497000502d99ada7 /src/selectors.hh | |
| parent | 785cd34b4bf911ad98af3c27c21f281319e1825b (diff) | |
Make use of custom regex backward searching support for reverse search
Diffstat (limited to 'src/selectors.hh')
| -rw-r--r-- | src/selectors.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selectors.hh b/src/selectors.hh index e2c3444e..135a99dd 100644 --- a/src/selectors.hh +++ b/src/selectors.hh @@ -98,9 +98,9 @@ trim_partial_lines(const Context& context, const Selection& selection); void select_buffer(SelectionList& selections); -enum Direction { Forward, Backward }; +enum class MatchDirection; -template<Direction direction> +template<MatchDirection direction> Selection find_next_match(const Context& context, const Selection& sel, const Regex& regex, bool& wrapped); |
