diff options
author | Ivan Tham | 2021-07-03 11:58:18 +0000 |
---|---|---|
committer | Ivan Tham | 2021-07-03 12:20:24 +0000 |
commit | 6ccfa229ed61552e243519534c8659c0974ef62e (patch) | |
tree | 7ac73a7604bee407e166d973fe4a54696db2d20b | |
parent | 351c1e7e5533a05a8e4da20d1e5227c356098b7b (diff) |
Fix typo on comment in surround
-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?) |