summaryrefslogtreecommitdiff
path: root/src/selectors.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-01-27 08:28:25 +0000
committerMaxime Coste <frrrwww@gmail.com>2016-01-27 19:36:31 +0000
commitb7530b021a1b04eadce26cc2480e8f8decfdcc46 (patch)
treedd56dbbe12c347ad843a7581310d3b4f59d3960e /src/selectors.hh
parentf8106690b1ea1f307671bb347cc86869c1c88d2c (diff)
StringView based surround selection
Diffstat (limited to 'src/selectors.hh')
-rw-r--r--src/selectors.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selectors.hh b/src/selectors.hh
index c38711a8..a75cb35b 100644
--- a/src/selectors.hh
+++ b/src/selectors.hh
@@ -304,9 +304,9 @@ Selection find_next_match(const Buffer& buffer, const Selection& sel, const Rege
void select_all_matches(SelectionList& selections, const Regex& regex, unsigned capture = 0);
void split_selections(SelectionList& selections, const Regex& separator_regex, unsigned capture = 0);
-struct MatchingPair { Codepoint opening, closing; };
Selection select_surrounding(const Buffer& buffer, const Selection& selection,
- MatchingPair matching, int level, ObjectFlags flags);
+ StringView opening, StringView closing, int level,
+ ObjectFlags flags);
}