diff --git a/helix-core/src/line_ending.rs b/helix-core/src/line_ending.rs index 36c02a941..2b272608e 100644 --- a/helix-core/src/line_ending.rs +++ b/helix-core/src/line_ending.rs @@ -195,7 +195,7 @@ pub fn get_line_ending_of_str(line: &str) -> Option { } } -/// Returns the char index of the end of the given line, not including its line ending. +/// Returns the char index of the end of the given line. pub fn line_end_char_index(slice: &RopeSlice, line: usize) -> usize { slice.line_to_char(line + 1) - get_line_ending(&slice.line(line))