on master help sign in
Fix typo on comment in surround
6ccfa22Ivan Tham
helix-core/src/surround.rs+1−1
@@ -44,7 +44,7 @@ pub fn find_nth_pairs_pos(
44 let prev = search::find_nth_prev(text, open, pos, n, true);
44 let prev = search::find_nth_prev(text, open, pos, n, true);
45 let next = search::find_nth_next(text, close, pos, n, true);
45 let next = search::find_nth_next(text, close, pos, n, true);
46 if text.char(pos) == open {
46 if text.char(pos) == open {
47− // curosr is *on* a pair
47+ // cursor is *on* a pair
48 next.map(|n| (pos, n)).or_else(|| prev.map(|p| (p, pos)))?
48 next.map(|n| (pos, n)).or_else(|| prev.map(|p| (p, pos)))?
49 } else {
49 } else {
50 (prev?, next?)
50 (prev?, next?)