forked from janek/mostr
1
0
Fork 0

fix(main): more intuitive behavior when stopping tracking with stamp

This commit is contained in:
xeruf 2024-08-19 21:55:44 +03:00
parent f4cff3d702
commit 1b0f7dca09
1 changed files with 7 additions and 4 deletions

View File

@ -473,10 +473,13 @@ async fn main() {
} }
Some(')') => { Some(')') => {
tasks.move_to(None); match arg {
if let Some(arg) = arg { None => tasks.move_to(None),
if !tasks.track_from(arg) { Some(arg) => {
continue; if parse_tracking_stamp(arg).map(|stamp| tasks.track_at(stamp, None)).is_none() {
// So the error message is not covered up
continue
}
} }
} }
} }