forked from janek/mostr
fix(main): more intuitive behavior when stopping tracking with stamp
This commit is contained in:
parent
f4cff3d702
commit
1b0f7dca09
11
src/main.rs
11
src/main.rs
|
@ -473,10 +473,13 @@ async fn main() {
|
|||
}
|
||||
|
||||
Some(')') => {
|
||||
tasks.move_to(None);
|
||||
if let Some(arg) = arg {
|
||||
if !tasks.track_from(arg) {
|
||||
continue;
|
||||
match arg {
|
||||
None => tasks.move_to(None),
|
||||
Some(arg) => {
|
||||
if parse_tracking_stamp(arg).map(|stamp| tasks.track_at(stamp, None)).is_none() {
|
||||
// So the error message is not covered up
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue