From f444d9b1156dbd44acac2f49af515b5389582240 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 17 Dec 2024 04:56:06 +0200 Subject: [PATCH] enshort with bounds --- src/app/browser/window/tab/item/page/search/form.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page/search/form.rs b/src/app/browser/window/tab/item/page/search/form.rs index 7bfdce08..1e670783 100644 --- a/src/app/browser/window/tab/item/page/search/form.rs +++ b/src/app/browser/window/tab/item/page/search/form.rs @@ -137,8 +137,7 @@ fn find( match subject.borrow().as_ref() { Some(subject) => { // Get iters - let buffer_start = subject.text_view.buffer().start_iter(); - let buffer_end = subject.text_view.buffer().end_iter(); + let (buffer_start, buffer_end) = subject.text_view.buffer().bounds(); // Cleanup previous search highlights subject