diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-01-16 18:49:27 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-01-16 18:49:27 +0000 |
| commit | 7316afd17b37f96dbaf9e19d96509eca5d8e407a (patch) | |
| tree | 312e5e199a2d213cec855c1b32a819a064fbd386 /src/selectors.hh | |
| parent | c24a636cb9632d03396513f7042d4a585f4a9ed4 (diff) | |
Use ints instead of unsigned for capture count
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 0811b8ae..6933a6b2 100644 --- a/src/selectors.hh +++ b/src/selectors.hh @@ -87,8 +87,8 @@ bool find_match_in_buffer(const Buffer& buffer, const BufferIterator pos, template<Direction direction> Selection find_next_match(const Buffer& buffer, const Selection& sel, const Regex& regex, bool& wrapped); -void select_all_matches(SelectionList& selections, const Regex& regex, unsigned capture = 0); -void split_selections(SelectionList& selections, const Regex& separator_regex, unsigned capture = 0); +void select_all_matches(SelectionList& selections, const Regex& regex, int capture = 0); +void split_selections(SelectionList& selections, const Regex& separator_regex, int capture = 0); Selection select_surrounding(const Buffer& buffer, const Selection& selection, StringView opening, StringView closing, int level, |
