aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/comment.rs
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-core/src/comment.rs
parent48df05b16dba362366b63284c2e551c51995fb66 (diff)
Cleanup find_first_non_whitespace_char funcs
Diffstat (limited to 'helix-core/src/comment.rs')
-rw-r--r--helix-core/src/comment.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs
index fd9d9058..dff99bab 100644
--- a/helix-core/src/comment.rs
+++ b/helix-core/src/comment.rs
@@ -1,5 +1,5 @@
use crate::{
- find_first_non_whitespace_char2, Change, Rope, RopeSlice, Selection, Tendril, Transaction,
+ find_first_non_whitespace_char, Change, Rope, RopeSlice, Selection, Tendril, Transaction,
};
use core::ops::Range;
use std::borrow::Cow;
@@ -14,7 +14,7 @@ fn find_line_comment(
let mut min = usize::MAX; // minimum col for find_first_non_whitespace_char
for line in lines {
let line_slice = text.line(line);
- if let Some(pos) = find_first_non_whitespace_char2(line_slice) {
+ if let Some(pos) = find_first_non_whitespace_char(line_slice) {
let len = line_slice.len_chars();
if pos < min {