aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ttyplay/timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ttyplay/timer.rs')
-rw-r--r--src/bin/ttyplay/timer.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/ttyplay/timer.rs b/src/bin/ttyplay/timer.rs
index e8e4ce9..eb60185 100644
--- a/src/bin/ttyplay/timer.rs
+++ b/src/bin/ttyplay/timer.rs
@@ -138,6 +138,14 @@ pub fn spawn_task(
- (((now - start_time) * 16) / playback_ratio);
playback_ratio = 16;
}
+ crate::event::TimerAction::Search(s) => {
+ if let Some(new_idx) =
+ frames.lock_arc().await.search(idx + 1, &s)
+ {
+ idx = new_idx;
+ force_update_time = true;
+ }
+ }
crate::event::TimerAction::Quit => break,
},
Res::TimerAction(Err(e)) => panic!("{}", e),