aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorWojciech Kępka2021-06-08 07:11:45 +0000
committerBlaž Hrastnik2021-06-08 08:22:37 +0000
commitc978d811d96d03acf04ddbe5af66fff57c17e287 (patch)
treed7e9c0deb5ee6addf25381ab977ca2714d06cc31 /helix-term/src
parent48df05b16dba362366b63284c2e551c51995fb66 (diff)
Cleanup find_first_non_whitespace_char funcs
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs6
1 files changed, 3 insertions, 3 deletions
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 {