update comments

This commit is contained in:
yggverse 2024-12-18 15:22:08 +02:00
parent d8a4e42f3c
commit a25c171e0e

View File

@ -60,10 +60,8 @@ impl Navigation {
self.model.replace(Model::new(matches)); 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 /// * 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)> { pub fn back(&self, subject: &Subject) -> Option<(TextIter, TextIter)> {
let buffer = subject.text_view.buffer(); 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 /// * 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)> { pub fn forward(&self, subject: &Subject) -> Option<(TextIter, TextIter)> {
let buffer = subject.text_view.buffer(); let buffer = subject.text_view.buffer();