Skip to content

Commit

Permalink
Temporarily turn on unicode-lines
Browse files Browse the repository at this point in the history
Ropey's non-unicode lines impl has some bugs still
  • Loading branch information
archseer committed Mar 17, 2022
1 parent 16e2b2e commit 2376fc8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions helix-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ homepage = "https://helix-editor.com"
include = ["src/**/*", "README.md"]

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

[dependencies]
Expand Down
5 changes: 4 additions & 1 deletion helix-core/src/chars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ mod test {

#[test]
fn test_categorize() {
const EOL_TEST_CASE: &str = "\n\r\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
#[cfg(not(feature = "unicode-lines"))]
const EOL_TEST_CASE: &str = "\n";
#[cfg(feature = "unicode-lines")]
const EOL_TEST_CASE: &str = "\n\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890";
const PUNCTUATION_TEST_CASE: &str =
"!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~";
Expand Down
2 changes: 2 additions & 0 deletions helix-term/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ build = true
app = true

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

[[bin]]
name = "hx"
Expand Down

0 comments on commit 2376fc8

Please # to comment.