Moved the shape until cursor outside of the loop

This commit is contained in:
Andrew Wheeler(Genusis) 2022-10-25 10:57:42 -04:00 committed by Jeremy Soller
parent 16ebfcf6e6
commit 079778cbf9

View file

@ -98,7 +98,9 @@ fn main() {
let mut mouse_x = -1;
let mut mouse_y = -1;
let mut mouse_left = false;
let mut shape_me = true;
//Lets do this once and rely on events for the rest.
buffer.shape_until_cursor();
loop {
let font_size = buffer.metrics().font_size;
@ -106,12 +108,6 @@ fn main() {
let mut force_drag = true;
//lets do this once and rely on the events to do the rest.
if shape_me {
buffer.shape_until_cursor();
shape_me = false;
}
if buffer.redraw {
let instant = Instant::now();