From 0b9620108dabe6a26fbeac32ba9d236b6d69b56a Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 17 Mar 2022 12:03:15 +0900 Subject: ropey 1.4.1 fixes the issue --- helix-core/src/line_ending.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'helix-core/src') diff --git a/helix-core/src/line_ending.rs b/helix-core/src/line_ending.rs index 60e0acfa..06ec2a45 100644 --- a/helix-core/src/line_ending.rs +++ b/helix-core/src/line_ending.rs @@ -300,9 +300,8 @@ mod line_ending_tests { fn line_end_char_index_rope_slice() { let r = Rope::from_str("Hello\rworld\nhow\r\nare you?"); let s = &r.slice(..); - assert_eq!(line_end_char_index(s, 0), 5); - assert_eq!(line_end_char_index(s, 1), 11); - assert_eq!(line_end_char_index(s, 2), 15); - assert_eq!(line_end_char_index(s, 3), 25); + assert_eq!(line_end_char_index(s, 0), 11); + assert_eq!(line_end_char_index(s, 1), 15); + assert_eq!(line_end_char_index(s, 2), 25); } } -- cgit v1.2.3-70-g09d2