From b974957bc92ff41e70ac4647b821166b3a0626e0 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 29 Aug 2024 11:54:53 +0300 Subject: [PATCH] fix: do not set view depth when searching --- src/main.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 66e5731..e8a1524 100644 --- a/src/main.rs +++ b/src/main.rs @@ -652,11 +652,6 @@ async fn main() -> Result<()> { if dots > 1 { info!("Moving up {} tasks", dots - 1) } - } else if let Ok(depth) = slice.parse::() { - if pos != tasks.get_position_ref() { - tasks.move_to(pos.cloned()); - } - tasks.set_depth(depth); } else { let mut transform: Box String> = Box::new(|s: &str| s.to_string()); if !slice.chars().any(|c| c.is_ascii_uppercase()) {