forked from janek/mostr
fix(main): do not superfluously move in place
This commit is contained in:
parent
a059ff1c3e
commit
66af6af0ab
|
@ -482,7 +482,9 @@ async fn main() {
|
|||
}
|
||||
let slice = input[dots..].trim();
|
||||
|
||||
if pos != tasks.get_position() || slice.is_empty() {
|
||||
tasks.move_to(pos);
|
||||
}
|
||||
if slice.is_empty() {
|
||||
if dots > 1 {
|
||||
info!("Moving up {} tasks", dots - 1)
|
||||
|
|
Loading…
Reference in New Issue