Skip to content

Commit

Permalink
ropey 1.4.1 fixes the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Mar 17, 2022
1 parent 2376fc8 commit 0b96201
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion helix-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ homepage = "https://helix-editor.com"
include = ["src/**/*", "README.md"]

[features]
default = ["unicode-lines"]
unicode-lines = ["ropey/unicode_lines"]

[dependencies]
Expand Down
7 changes: 3 additions & 4 deletions helix-core/src/line_ending.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
1 change: 0 additions & 1 deletion helix-term/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ build = true
app = true

[features]
default = ["unicode-lines"]
unicode-lines = ["helix-core/unicode-lines"]

[[bin]]
Expand Down

0 comments on commit 0b96201

Please sign in to comment.