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(')') => {
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue