From 6ccfa229ed61552e243519534c8659c0974ef62e Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sat, 3 Jul 2021 19:58:18 +0800 Subject: Fix typo on comment in surround --- helix-core/src/surround.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?) -- cgit v1.2.3-70-g09d2