ropey 1.4.1 fixes the issue

pull/1826/head
Blaž Hrastnik 3 years ago
parent 2376fc875e
commit 0b9620108d
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

8
Cargo.lock generated

@ -861,9 +861,9 @@ checksum = "8c31b5c4033f8fdde8700e4657be2c497e7288f01515be52168c631e2e4d4086"
[[package]] [[package]]
name = "ropey" name = "ropey"
version = "1.4.0" version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f6c0c65c416cce36ace31a7cf9bbc8b7f97926df68637f23b5cb39ab7c304d3" checksum = "fa0dd9b26e2a102b33d400b7b7d196c81a4014eb96eda90b1c5b48d7215d9633"
dependencies = [ dependencies = [
"smallvec", "smallvec",
"str_indices", "str_indices",
@ -1040,9 +1040,9 @@ checksum = "283baa48c486e4c5e27b4d92c435db9eaceac236a74dab5e3293570e2c3fa4aa"
[[package]] [[package]]
name = "syn" name = "syn"
version = "1.0.88" version = "1.0.89"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebd69e719f31e88618baa1eaa6ee2de5c9a1c004f1e9ecdb58e8352a13f20a01" checksum = "ea297be220d52398dcc07ce15a209fce436d361735ac1db700cab3b6cdfb9f54"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",

@ -11,7 +11,6 @@ homepage = "https://helix-editor.com"
include = ["src/**/*", "README.md"] include = ["src/**/*", "README.md"]
[features] [features]
default = ["unicode-lines"]
unicode-lines = ["ropey/unicode_lines"] unicode-lines = ["ropey/unicode_lines"]
[dependencies] [dependencies]

@ -300,9 +300,8 @@ mod line_ending_tests {
fn line_end_char_index_rope_slice() { fn line_end_char_index_rope_slice() {
let r = Rope::from_str("Hello\rworld\nhow\r\nare you?"); let r = Rope::from_str("Hello\rworld\nhow\r\nare you?");
let s = &r.slice(..); let s = &r.slice(..);
assert_eq!(line_end_char_index(s, 0), 5); assert_eq!(line_end_char_index(s, 0), 11);
assert_eq!(line_end_char_index(s, 1), 11); assert_eq!(line_end_char_index(s, 1), 15);
assert_eq!(line_end_char_index(s, 2), 15); assert_eq!(line_end_char_index(s, 2), 25);
assert_eq!(line_end_char_index(s, 3), 25);
} }
} }

@ -16,7 +16,6 @@ build = true
app = true app = true
[features] [features]
default = ["unicode-lines"]
unicode-lines = ["helix-core/unicode-lines"] unicode-lines = ["helix-core/unicode-lines"]
[[bin]] [[bin]]

Loading…
Cancel
Save