Update dependencies and fix warning

This commit is contained in:
Jeremy Soller 2023-11-17 08:31:43 -07:00
parent 125483ce04
commit 983e85ab89
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 24 additions and 24 deletions

View file

@ -344,7 +344,7 @@ where
let start_line = start_line_opt.unwrap_or(end_line);
let lines = editor.buffer().lines.len();
let start_y = (start_line * image_h as usize) / lines;
let end_y = (((end_line + 1) * image_h as usize) / lines);
let end_y = ((end_line + 1) * image_h as usize) / lines;
let rect = Rectangle::new(
[image_w as f32 / scale_factor, start_y as f32 / scale_factor].into(),