on master help sign in
ropey 1.4.1 fixes the issue
commit0b9620108dabe6a26fbeac32ba9d236b6d69b56a authorBlaž Hrastnik <blaz@mxxn.io> dateThu 17 Mar 2022, 12:03 (5 years ago) parent2376fc8
4 files changed+7−10
Cargo.lock+4−4 helix-core/Cargo.toml−1 helix-core/src/line_ending.rs+3−4 helix-term/Cargo.toml−1
Cargo.lock+4−4
@@ -861,9 +861,9 @@ checksum = "8c31b5c4033f8fdde8700e4657be2c497e7288f01515be52168c631e2e4d4086"
861861
862862[[package]]
863863name = "ropey"
864−version = "1.4.0"
864+version = "1.4.1"
865865source = "registry+https://github.com/rust-lang/crates.io-index"
866−checksum = "5f6c0c65c416cce36ace31a7cf9bbc8b7f97926df68637f23b5cb39ab7c304d3"
866+checksum = "fa0dd9b26e2a102b33d400b7b7d196c81a4014eb96eda90b1c5b48d7215d9633"
867867dependencies = [
868868 "smallvec",
869869 "str_indices",
@@ -1040,9 +1040,9 @@ checksum = "283baa48c486e4c5e27b4d92c435db9eaceac236a74dab5e3293570e2c3fa4aa"
10401040
10411041[[package]]
10421042name = "syn"
1043−version = "1.0.88"
1043+version = "1.0.89"
10441044source = "registry+https://github.com/rust-lang/crates.io-index"
1045−checksum = "ebd69e719f31e88618baa1eaa6ee2de5c9a1c004f1e9ecdb58e8352a13f20a01"
1045+checksum = "ea297be220d52398dcc07ce15a209fce436d361735ac1db700cab3b6cdfb9f54"
10461046dependencies = [
10471047 "proc-macro2",
10481048 "quote",
helix-core/Cargo.toml−1
@@ -11,7 +11,6 @@ homepage = "https://helix-editor.com"
1111include = ["src/**/*", "README.md"]
1212
1313[features]
14−default = ["unicode-lines"]
1514unicode-lines = ["ropey/unicode_lines"]
1615
1716[dependencies]
helix-core/src/line_ending.rs+3−4
@@ -300,9 +300,8 @@ mod line_ending_tests {
300300 fn line_end_char_index_rope_slice() {
301301 let r = Rope::from_str("Hello\rworld\nhow\r\nare you?");
302302 let s = &r.slice(..);
303− assert_eq!(line_end_char_index(s, 0), 5);
304− assert_eq!(line_end_char_index(s, 1), 11);
305− assert_eq!(line_end_char_index(s, 2), 15);
306− assert_eq!(line_end_char_index(s, 3), 25);
303+ assert_eq!(line_end_char_index(s, 0), 11);
304+ assert_eq!(line_end_char_index(s, 1), 15);
305+ assert_eq!(line_end_char_index(s, 2), 25);
307306 }
308307}
helix-term/Cargo.toml−1
@@ -16,7 +16,6 @@ build = true
1616app = true
1717
1818[features]
19−default = ["unicode-lines"]
2019unicode-lines = ["helix-core/unicode-lines"]
2120
2221[[bin]]