From 1533676bfff0bda3c14c0081fee206c2903596c3 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Mon, 14 Oct 2024 16:39:44 +0200 Subject: [PATCH] fix: do not show all tasks when filter has no matches --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 11adc97..6d0b261 100644 --- a/src/main.rs +++ b/src/main.rs @@ -730,7 +730,9 @@ async fn main() -> Result<()> { tasks.move_to(filtered.into_iter().next()); } else { tasks.move_to(pos.cloned()); - tasks.set_view(filtered); + if !tasks.set_view(filtered) { + continue 'repl; + } } } }