fix(main): do not superfluously move in place
This commit is contained in:
parent
a059ff1c3e
commit
66af6af0ab
1 changed files with 3 additions and 1 deletions
|
@ -482,7 +482,9 @@ async fn main() {
|
|||
}
|
||||
let slice = input[dots..].trim();
|
||||
|
||||
tasks.move_to(pos);
|
||||
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…
Add table
Reference in a new issue