Skip to content

Commit

Permalink
fixup! perf(interactive): only update when event changed something
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Feb 26, 2024
1 parent 6f72103 commit d96914f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/interactive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,13 @@ impl App {
ElementInFocus::TopicSearch => match key.code {
KeyCode::Char(char) => {
self.topic_overview.search += &char.to_lowercase().to_string();
self.search_select(SearchSelection::Stay)
self.search_select(SearchSelection::Stay);
true
}
KeyCode::Backspace => {
self.topic_overview.search.pop();
self.search_select(SearchSelection::Stay)
self.search_select(SearchSelection::Stay);
true
}
KeyCode::Up => self.search_select(SearchSelection::Before),
KeyCode::Down => self.search_select(SearchSelection::After),
Expand Down

0 comments on commit d96914f

Please sign in to comment.