forked from janek/mostr
1
0
Fork 0

fix(main): do not superfluously move in place

This commit is contained in:
xeruf 2024-08-13 21:31:06 +03:00
parent a059ff1c3e
commit 66af6af0ab
1 changed files with 3 additions and 1 deletions

View File

@ -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)