on master help sign in
Temporarily turn on unicode-lines

Ropey's non-unicode lines impl has some bugs still

commit2376fc875e659dfce952c0b885e369b4295ba441 authorBlaž Hrastnik <blaz@mxxn.io> dateThu 17 Mar 2022, 10:52 (5 years ago) parent16e2b2e
3 files changed+7−1
helix-core/Cargo.toml+1 helix-core/src/chars.rs+4−1 helix-term/Cargo.toml+2
helix-core/Cargo.toml+1
@@ -11,6 +11,7 @@ homepage = "https://helix-editor.com"
1111include = ["src/**/*", "README.md"]
1212
1313[features]
14+default = ["unicode-lines"]
1415unicode-lines = ["ropey/unicode_lines"]
1516
1617[dependencies]
helix-core/src/chars.rs+4−1
@@ -91,7 +91,10 @@ mod test {
9191
9292 #[test]
9393 fn test_categorize() {
94− const EOL_TEST_CASE: &str = "\n\r\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
94+ #[cfg(not(feature = "unicode-lines"))]
95+ const EOL_TEST_CASE: &str = "\n";
96+ #[cfg(feature = "unicode-lines")]
97+ const EOL_TEST_CASE: &str = "\n\u{000B}\u{000C}\u{0085}\u{2028}\u{2029}";
9598 const WORD_TEST_CASE: &str = "_hello_world_あいうえおー12345678901234567890";
9699 const PUNCTUATION_TEST_CASE: &str =
97100 "!\"#$%&\'()*+,-./:;<=>?@[\\]^`{|}~!”#$%&’()*+、。:;<=>?@「」^`{|}~";
helix-term/Cargo.toml+2
@@ -16,6 +16,8 @@ build = true
1616app = true
1717
1818[features]
19+default = ["unicode-lines"]
20+unicode-lines = ["helix-core/unicode-lines"]
1921
2022[[bin]]
2123name = "hx"