diff options
author | Blaž Hrastnik | 2022-05-30 03:29:07 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-05-30 03:29:07 +0000 |
commit | 370a16d0f00d6146fdeb87cc16fb352e860e2377 (patch) | |
tree | f9d946826d98f7d01f56e57b42088a31aebe7b15 /helix-term | |
parent | 5ed622399026754b3712db7ac8c2d6fc372d0238 (diff) |
Update to ropey 1.5
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/Cargo.toml | 1 | ||||
-rw-r--r-- | helix-term/src/ui/editor.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml index 9be29b0f..0f80c416 100644 --- a/helix-term/Cargo.toml +++ b/helix-term/Cargo.toml @@ -33,7 +33,6 @@ anyhow = "1" once_cell = "1.12" which = "4.2" -ropey = { version = "1.4", default-features = false } tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot"] } tui = { path = "../helix-tui", package = "helix-tui", default-features = false, features = ["crossterm"] } diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 85028e2f..f074d9f1 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -467,7 +467,7 @@ impl EditorView { // make sure we display tab as appropriate amount of spaces let visual_tab_width = tab_width - (visual_x as usize % tab_width); let grapheme_tab_width = - ropey::str_utils::char_to_byte_idx(&tab, visual_tab_width); + helix_core::str_utils::char_to_byte_idx(&tab, visual_tab_width); (&tab[..grapheme_tab_width], visual_tab_width) } else if grapheme == " " { |