From 370a16d0f00d6146fdeb87cc16fb352e860e2377 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 30 May 2022 12:29:07 +0900 Subject: Update to ropey 1.5 --- helix-term/Cargo.toml | 1 - helix-term/src/ui/editor.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'helix-term') 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 == " " { -- cgit v1.2.3-70-g09d2