mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 03:15:33 +03:00
Fix typo on comment in surround
This commit is contained in:
parent
351c1e7e55
commit
6ccfa229ed
@ -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?)
|
||||
|
Loading…
Reference in New Issue
Block a user