diff options
author | Blaž Hrastnik | 2021-06-27 14:09:39 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-27 14:28:22 +0000 |
commit | 01b1a62e2c6187b7406b20a38c8a371bd053dc63 (patch) | |
tree | cde286ec50d5403b656a9f794639c8a1b02dc31c | |
parent | 4edfac21f676dcedf39390db989a0327196b31a2 (diff) |
This char_index is unused
-rw-r--r-- | helix-term/src/ui/editor.rs | 4 |
1 files changed, 0 insertions, 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(); } } } |