Skip to content

Commit

Permalink
Fix focused item being off-screen when searching for specific item
Browse files Browse the repository at this point in the history
  • Loading branch information
Exidex committed Jul 18, 2024
1 parent 8b91976 commit af0b0ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/client/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit af0b0ca

Please sign in to comment.