aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ttyplay/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ttyplay/input.rs')
-rw-r--r--src/bin/ttyplay/input.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/bin/ttyplay/input.rs b/src/bin/ttyplay/input.rs
index e953f6d..f69423b 100644
--- a/src/bin/ttyplay/input.rs
+++ b/src/bin/ttyplay/input.rs
@@ -30,6 +30,7 @@ pub fn spawn_task(
event_w
.send(crate::event::Event::RunSearch(
search_contents.clone(),
+ false,
))
.await
.unwrap();
@@ -100,7 +101,20 @@ pub fn spawn_task(
}
textmode::Key::Char('n') => {
if let Some(ref search) = prev_search {
- crate::event::Event::RunSearch(search.clone())
+ crate::event::Event::RunSearch(
+ search.clone(),
+ false,
+ )
+ } else {
+ continue;
+ }
+ }
+ textmode::Key::Char('p') => {
+ if let Some(ref search) = prev_search {
+ crate::event::Event::RunSearch(
+ search.clone(),
+ true,
+ )
} else {
continue;
}