This char_index is unused
This commit is contained in:
parent
4edfac21f6
commit
01b1a62e2c
@ -250,8 +250,6 @@ pub fn render_buffer(
|
|||||||
// and paint the new cursor.
|
// and paint the new cursor.
|
||||||
// We could keep a single resizable surface on the View for that.
|
// We could keep a single resizable surface on the View for that.
|
||||||
|
|
||||||
let mut char_index = start;
|
|
||||||
|
|
||||||
// iterate over range char by char
|
// iterate over range char by char
|
||||||
for grapheme in RopeGraphemes::new(text) {
|
for grapheme in RopeGraphemes::new(text) {
|
||||||
let out_of_bounds = visual_x < view.first_col as u16
|
let out_of_bounds = visual_x < view.first_col as u16
|
||||||
@ -311,8 +309,6 @@ pub fn render_buffer(
|
|||||||
|
|
||||||
visual_x += width;
|
visual_x += width;
|
||||||
}
|
}
|
||||||
|
|
||||||
char_index += grapheme.chars().count();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user