From 87d6f1017048ac8dabb7da676096c29da88df22d Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 15 Dec 2024 15:38:56 +0200 Subject: [PATCH] update method name --- .../page/content/text/gemini/reader/widget/find.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find.rs index d2be71ca..60ccec1b 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find.rs @@ -106,7 +106,7 @@ impl Find { this.set_secondary_icon_name(Some("edit-clear-symbolic")); } // apply changes - if update( + if find( &text_buffer, &found_tag, entry.text().as_str(), @@ -131,7 +131,7 @@ impl Find { let found_tag = found_tag.clone(); let text_buffer = text_buffer.clone(); move |this| { - if update( + if find( &text_buffer, &found_tag, entry.text().as_str(), @@ -155,12 +155,7 @@ impl Find { } } -fn update( - text_buffer: &TextBuffer, - found_tag: &TextTag, - subject: &str, - is_match_case: bool, -) -> i64 { +fn find(text_buffer: &TextBuffer, found_tag: &TextTag, subject: &str, is_match_case: bool) -> i64 { // Cleanup previous search results text_buffer.remove_tag( found_tag,