aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-03-17 03:03:15 +0000
committerBlaž Hrastnik2022-03-17 03:03:15 +0000
commit0b9620108dabe6a26fbeac32ba9d236b6d69b56a (patch)
treedec89c4040fc7e5a10917daec57d5f985645531e /helix-core
parent2376fc875e659dfce952c0b885e369b4295ba441 (diff)
ropey 1.4.1 fixes the issue
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/Cargo.toml1
-rw-r--r--helix-core/src/line_ending.rs7
2 files changed, 3 insertions, 5 deletions
diff --git a/helix-core/Cargo.toml b/helix-core/Cargo.toml
index 20bc6fb8..050bc8ab 100644
--- a/helix-core/Cargo.toml
+++ b/helix-core/Cargo.toml
@@ -11,7 +11,6 @@ homepage = "https://helix-editor.com"
include = ["src/**/*", "README.md"]
[features]
-default = ["unicode-lines"]
unicode-lines = ["ropey/unicode_lines"]
[dependencies]
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);
}
}