diff options
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/surround.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/surround.rs b/helix-core/src/surround.rs index 841288c2..52f60cab 100644 --- a/helix-core/src/surround.rs +++ b/helix-core/src/surround.rs @@ -44,7 +44,7 @@ pub fn find_nth_pairs_pos( let prev = search::find_nth_prev(text, open, pos, n, true); let next = search::find_nth_next(text, close, pos, n, true); if text.char(pos) == open { - // curosr is *on* a pair + // cursor is *on* a pair next.map(|n| (pos, n)).or_else(|| prev.map(|p| (p, pos)))? } else { (prev?, next?) |