@@ -1,5 +1,5 @@
1use helix_core::{
1use helix_core::{
2− comment, coords_at_pos, find_first_non_whitespace_char2, find_root, graphemes, indent,
2+ comment, coords_at_pos, find_first_non_whitespace_char, find_root, graphemes, indent,
3 match_brackets,
3 match_brackets,
4 movement::{self, Direction},
4 movement::{self, Direction},
5 object, pos_at_coords,
5 object, pos_at_coords,
@@ -224,7 +224,7 @@ pub fn move_first_nonwhitespace(cx: &mut Context) {
224 let text = doc.text();
224 let text = doc.text();
225 let line_idx = text.char_to_line(range.head);
225 let line_idx = text.char_to_line(range.head);
227− if let Some(pos) = find_first_non_whitespace_char2(text.line(line_idx)) {
227+ if let Some(pos) = find_first_non_whitespace_char(text.line(line_idx)) {
228 let pos = pos + text.line_to_char(line_idx);
228 let pos = pos + text.line_to_char(line_idx);
229 Range::new(pos, pos)
229 Range::new(pos, pos)
@@ -447,7 +447,7 @@ pub fn extend_first_nonwhitespace(cx: &mut Context) {
447 let text = doc.text();
447 let text = doc.text();
448 let line_idx = text.char_to_line(range.head);
448 let line_idx = text.char_to_line(range.head);
450− if let Some(pos) = find_first_non_whitespace_char2(text.line(line_idx)) {
450+ if let Some(pos) = find_first_non_whitespace_char(text.line(line_idx)) {
451 let pos = pos + text.line_to_char(line_idx);
451 let pos = pos + text.line_to_char(line_idx);
452 Range::new(range.anchor, pos)
452 Range::new(range.anchor, pos)