on master help sign in
Update to ropey 1.5
commit370a16d0f00d6146fdeb87cc16fb352e860e2377 authorBlaž Hrastnik <blaz@mxxn.io> dateMon 30 May 2022, 12:29 (4 years ago) parent5ed6223
5 files changed+7−9
Cargo.lock+4−5 helix-core/Cargo.toml+1−1 helix-core/src/lib.rs+1−1 helix-term/Cargo.toml−1 helix-term/src/ui/editor.rs+1−1
Cargo.lock+4−5
@@ -457,7 +457,6 @@ dependencies = [
457457 "once_cell",
458458 "pulldown-cmark",
459459 "retain_mut",
460− "ropey",
461460 "serde",
462461 "serde_json",
463462 "signal-hook",
@@ -835,9 +834,9 @@ checksum = "4389f1d5789befaf6029ebd9f7dac4af7f7e3d61b69d4f30e2ac02b57e7712b0"
835834
836835[[package]]
837836name = "ropey"
838−version = "1.4.1"
837+version = "1.5.0"
839838source = "registry+https://github.com/rust-lang/crates.io-index"
840−checksum = "fa0dd9b26e2a102b33d400b7b7d196c81a4014eb96eda90b1c5b48d7215d9633"
839+checksum = "bbd22239fafefc42138ca5da064f3c17726a80d2379d817a3521240e78dd0064"
841840dependencies = [
842841 "smallvec",
843842 "str_indices",
@@ -1016,9 +1015,9 @@ checksum = "9e08d8363704e6c71fc928674353e6b7c23dcea9d82d7012c8faf2a3a025f8d0"
10161015
10171016[[package]]
10181017name = "str_indices"
1019−version = "0.3.2"
1018+version = "0.4.0"
10201019source = "registry+https://github.com/rust-lang/crates.io-index"
1021−checksum = "adfad63a1b47951101cd667a85b2959a62910cf03f814fff25df89c460b873f8"
1020+checksum = "9d9199fa80c817e074620be84374a520062ebac833f358d74b37060ce4a0f2c0"
10221021
10231022[[package]]
10241023name = "syn"
helix-core/Cargo.toml+1−1
@@ -16,7 +16,7 @@ unicode-lines = ["ropey/unicode_lines"]
1616[dependencies]
1717helix-loader = { version = "0.6", path = "../helix-loader" }
1818
19−ropey = { version = "1.4", default-features = false }
19+ropey = { version = "1.5", default-features = false, features = ["simd"] }
2020smallvec = "1.8"
2121smartstring = "1.0.1"
2222unicode-segmentation = "1.9"
helix-core/src/lib.rs+1−1
@@ -52,7 +52,7 @@ pub fn find_root(root: Option<&str>, root_markers: &[String]) -> Option<std::pat
5252 .cloned()
5353}
5454
55−pub use ropey::{Rope, RopeBuilder, RopeSlice};
55+pub use ropey::{str_utils, Rope, RopeBuilder, RopeSlice};
5656
5757// pub use tendril::StrTendril as Tendril;
5858pub use smartstring::SmartString;
helix-term/Cargo.toml−1
@@ -33,7 +33,6 @@ anyhow = "1"
3333once_cell = "1.12"
3434
3535which = "4.2"
36−ropey = { version = "1.4", default-features = false }
3736
3837tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot"] }
3938tui = { path = "../helix-tui", package = "helix-tui", default-features = false, features = ["crossterm"] }
helix-term/src/ui/editor.rs+1−1
@@ -467,7 +467,7 @@ impl EditorView {
467467 // make sure we display tab as appropriate amount of spaces
468468 let visual_tab_width = tab_width - (visual_x as usize % tab_width);
469469 let grapheme_tab_width =
470− ropey::str_utils::char_to_byte_idx(&tab, visual_tab_width);
470+ helix_core::str_utils::char_to_byte_idx(&tab, visual_tab_width);
471471
472472 (&tab[..grapheme_tab_width], visual_tab_width)
473473 } else if grapheme == " " {