From 01b1a62e2c6187b7406b20a38c8a371bd053dc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sun, 27 Jun 2021 23:09:39 +0900 Subject: [PATCH] This char_index is unused --- helix-term/src/ui/editor.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 753af2cb..4bdfd026 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -250,8 +250,6 @@ impl EditorView { // and paint the new cursor. // We could keep a single resizable surface on the View for that. - let mut char_index = start; - // iterate over range char by char for grapheme in RopeGraphemes::new(text) { let out_of_bounds = visual_x < view.first_col as u16 @@ -311,8 +309,6 @@ impl EditorView { visual_x += width; } - - char_index += grapheme.chars().count(); } } }