Fix issue with search results not being highlighted sometimes

This commit is contained in:
itsjunetime
2025-03-16 21:59:36 -06:00
parent 0c81e3cc3a
commit d8ee0744b8
4 changed files with 60 additions and 56 deletions
+7 -1
View File
@@ -2,6 +2,7 @@ use flume::{Receiver, SendError, Sender, TryRecvError};
use futures_util::stream::StreamExt;
use image::DynamicImage;
use itertools::Itertools;
use ratatui::layout::Rect;
use ratatui_image::{Resize, picker::Picker, protocol::Protocol};
use rayon::iter::ParallelIterator;
@@ -73,7 +74,12 @@ pub async fn run_conversion_loop(
_ => unreachable!()
};
let img_area = page_info.img_data.cell_area;
let img_area = Rect {
width: page_info.img_data.cell_w,
height: page_info.img_data.cell_h,
x: 0,
y: 0
};
// We don't actually want to Crop this image, but we've already
// verified (with the ImageSurface stuff) that the image is the correct