pull/10658/merge
Pantos 2025-06-13 14:47:06 -04:00 committed by GitHub
commit 6061b5ced2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ pub fn get_line_ending_of_str(line: &str) -> Option<LineEnding> {
}
}
/// 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))