on master help sign in
ropey 1.4.1 fixes the issue
0b96201Blaž Hrastnik
Cargo.lock+4−4
@@ -861,9 +861,9 @@ checksum = "8c31b5c4033f8fdde8700e4657be2c497e7288f01515be52168c631e2e4d4086"
861
861
862[[package]]
862[[package]]
863name = "ropey"
863name = "ropey"
864−version = "1.4.0"
864+version = "1.4.1"
865source = "registry+https://github.com/rust-lang/crates.io-index"
865source = "registry+https://github.com/rust-lang/crates.io-index"
866−checksum = "5f6c0c65c416cce36ace31a7cf9bbc8b7f97926df68637f23b5cb39ab7c304d3"
866+checksum = "fa0dd9b26e2a102b33d400b7b7d196c81a4014eb96eda90b1c5b48d7215d9633"
867dependencies = [
867dependencies = [
868 "smallvec",
868 "smallvec",
869 "str_indices",
869 "str_indices",
@@ -1040,9 +1040,9 @@ checksum = "283baa48c486e4c5e27b4d92c435db9eaceac236a74dab5e3293570e2c3fa4aa"
1040
1040
1041[[package]]
1041[[package]]
1042name = "syn"
1042name = "syn"
1043−version = "1.0.88"
1043+version = "1.0.89"
1044source = "registry+https://github.com/rust-lang/crates.io-index"
1044source = "registry+https://github.com/rust-lang/crates.io-index"
1045−checksum = "ebd69e719f31e88618baa1eaa6ee2de5c9a1c004f1e9ecdb58e8352a13f20a01"
1045+checksum = "ea297be220d52398dcc07ce15a209fce436d361735ac1db700cab3b6cdfb9f54"
1046dependencies = [
1046dependencies = [
1047 "proc-macro2",
1047 "proc-macro2",
1048 "quote",
1048 "quote",
helix-core/Cargo.toml−1
@@ -11,7 +11,6 @@ homepage = "https://helix-editor.com"
11include = ["src/**/*", "README.md"]
11include = ["src/**/*", "README.md"]
12
12
13[features]
13[features]
14−default = ["unicode-lines"]
15unicode-lines = ["ropey/unicode_lines"]
14unicode-lines = ["ropey/unicode_lines"]
16
15
17[dependencies]
16[dependencies]
helix-core/src/line_ending.rs+3−4
@@ -300,9 +300,8 @@ mod line_ending_tests {
300 fn line_end_char_index_rope_slice() {
300 fn line_end_char_index_rope_slice() {
301 let r = Rope::from_str("Hello\rworld\nhow\r\nare you?");
301 let r = Rope::from_str("Hello\rworld\nhow\r\nare you?");
302 let s = &r.slice(..);
302 let s = &r.slice(..);
303− assert_eq!(line_end_char_index(s, 0), 5);
303+ assert_eq!(line_end_char_index(s, 0), 11);
304− assert_eq!(line_end_char_index(s, 1), 11);
304+ assert_eq!(line_end_char_index(s, 1), 15);
305− assert_eq!(line_end_char_index(s, 2), 15);
305+ assert_eq!(line_end_char_index(s, 2), 25);
306− assert_eq!(line_end_char_index(s, 3), 25);
307 }
306 }
308}
307}
helix-term/Cargo.toml−1
@@ -16,7 +16,6 @@ build = true
16app = true
16app = true
17
17
18[features]
18[features]
19−default = ["unicode-lines"]
20unicode-lines = ["helix-core/unicode-lines"]
19unicode-lines = ["helix-core/unicode-lines"]
21
20
22[[bin]]
21[[bin]]