From c978d811d96d03acf04ddbe5af66fff57c17e287 Mon Sep 17 00:00:00 2001 From: Wojciech Kępka Date: Tue, 8 Jun 2021 09:11:45 +0200 Subject: Cleanup find_first_non_whitespace_char funcs --- helix-term/src/commands.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index fc1b363c..d8e377c8 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1,5 +1,5 @@ use helix_core::{ - comment, coords_at_pos, find_first_non_whitespace_char2, find_root, graphemes, indent, + comment, coords_at_pos, find_first_non_whitespace_char, find_root, graphemes, indent, match_brackets, movement::{self, Direction}, object, pos_at_coords, @@ -224,7 +224,7 @@ pub fn move_first_nonwhitespace(cx: &mut Context) { let text = doc.text(); let line_idx = text.char_to_line(range.head); - if let Some(pos) = find_first_non_whitespace_char2(text.line(line_idx)) { + if let Some(pos) = find_first_non_whitespace_char(text.line(line_idx)) { let pos = pos + text.line_to_char(line_idx); Range::new(pos, pos) } else { @@ -447,7 +447,7 @@ pub fn extend_first_nonwhitespace(cx: &mut Context) { let text = doc.text(); let line_idx = text.char_to_line(range.head); - if let Some(pos) = find_first_non_whitespace_char2(text.line(line_idx)) { + if let Some(pos) = find_first_non_whitespace_char(text.line(line_idx)) { let pos = pos + text.line_to_char(line_idx); Range::new(range.anchor, pos) } else { -- cgit v1.2.3-70-g09d2