From a25c171e0ec8b3e44f66ad01bf6e562ed0e5958c Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 18 Dec 2024 15:22:08 +0200 Subject: [PATCH] update comments --- .../window/tab/item/page/search/form/navigation.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/browser/window/tab/item/page/search/form/navigation.rs b/src/app/browser/window/tab/item/page/search/form/navigation.rs index ef4835df..3721b247 100644 --- a/src/app/browser/window/tab/item/page/search/form/navigation.rs +++ b/src/app/browser/window/tab/item/page/search/form/navigation.rs @@ -60,10 +60,8 @@ impl Navigation { self.model.replace(Model::new(matches)); } - /// Navigate back in matches, apply tags to buffer + /// Navigate back in matches, apply tags to the buffer /// * return `start`/`end` iters to scroll up the widget - /// * user should not activate this function on empty results - /// expected all actions / buttons deactivated in this case pub fn back(&self, subject: &Subject) -> Option<(TextIter, TextIter)> { let buffer = subject.text_view.buffer(); @@ -86,10 +84,8 @@ impl Navigation { } } - /// Navigate forward in matches, apply tags to buffer + /// Navigate forward in matches, apply tags to the buffer /// * return `start`/`end` iters to scroll down the widget - /// * user should not activate this function on empty results - /// expected all actions / buttons deactivated in this case pub fn forward(&self, subject: &Subject) -> Option<(TextIter, TextIter)> { let buffer = subject.text_view.buffer();