From 66af6af0ab1299a6051cdf99d454c87975de7687 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 13 Aug 2024 21:31:06 +0300 Subject: [PATCH] fix(main): do not superfluously move in place --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6947d73..1cbe1ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)