@@ -646,7 +646,7 @@ where
647 let selection = doc.selection(view.id).clone().transform(|range| {
647 let selection = doc.selection(view.id).clone().transform(|range| {
648 // TODO: use `Range::cursor()` here instead. However, that works in terms of
648 // TODO: use `Range::cursor()` here instead. However, that works in terms of
649− // graphemes, wheras this function does yet. So we're doing the same logic
649+ // graphemes, whereas this function doesn't yet. So we're doing the same logic
650 // here, but just in terms of chars instead.
650 // here, but just in terms of chars instead.
651 let search_start_pos = if range.anchor < range.head {
651 let search_start_pos = if range.anchor < range.head {
652 range.head - 1
652 range.head - 1