From af0b0ca51be549c52067ad749e74b85e29c4a3b0 Mon Sep 17 00:00:00 2001 From: Exidex <16986685+Exidex@users.noreply.github.com> Date: Thu, 18 Jul 2024 21:32:42 +0200 Subject: [PATCH] Fix focused item being off-screen when searching for specific item --- rust/client/src/ui/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/client/src/ui/mod.rs b/rust/client/src/ui/mod.rs index 641c726..8295aeb 100644 --- a/rust/client/src/ui/mod.rs +++ b/rust/client/src/ui/mod.rs @@ -346,6 +346,8 @@ impl Application for AppModel { new_prompt.truncate(100); // search query uses regex so just to be safe truncate the prompt self.prompt = new_prompt.clone(); + self.focused_search_result = 0; + self.search_result_offset = 0; let mut backend_api = self.backend_api.clone();