Skip to content

Commit

Permalink
This char_index is unused
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jun 27, 2021
1 parent 4edfac2 commit 01b1a62
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -311,8 +309,6 @@ impl EditorView {

visual_x += width;
}

char_index += grapheme.chars().count();
}
}
}
Expand Down

0 comments on commit 01b1a62

Please sign in to comment.