Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/surround.rs')
| -rw-r--r-- | helix-core/src/surround.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/surround.rs b/helix-core/src/surround.rs index dbd197eb..4dec41f1 100644 --- a/helix-core/src/surround.rs +++ b/helix-core/src/surround.rs @@ -196,8 +196,8 @@ pub fn find_nth_pairs_pos( .ok_or(Error::CursorOnAmbiguousPair)? } else { ( - search::find_nth_prev(text, open, pos, n), - search::find_nth_next(text, close, pos, n), + search::find_nth_char(n, text, open, pos, Direction::Backward), + search::find_nth_char(n, text, close, pos, Direction::Forward), ) } } else { |