on master help sign in
Fix typo on comment in surround
commit6ccfa229ed61552e243519534c8659c0974ef62e authorIvan Tham <pickfire@riseup.net> dateSat 3 Jul 2021, 19:58 (5 years ago) parent351c1e7
1 file changed+1−1
helix-core/src/surround.rs+1−1
helix-core/src/surround.rs+1−1
@@ -44,7 +44,7 @@ pub fn find_nth_pairs_pos(
4444 let prev = search::find_nth_prev(text, open, pos, n, true);
4545 let next = search::find_nth_next(text, close, pos, n, true);
4646 if text.char(pos) == open {
47− // curosr is *on* a pair
47+ // cursor is *on* a pair
4848 next.map(|n| (pos, n)).or_else(|| prev.map(|p| (p, pos)))?
4949 } else {
5050 (prev?, next?)