We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5dfa5 commit 1665ffeCopy full SHA for 1665ffe
src/ui/app.rs
@@ -95,17 +95,18 @@ impl App {
95
let event_result = {
96
let event_handler = self.event_handler.clone();
97
tokio::task::spawn_blocking(move || event_handler.next_event())
98
- }.await;
+ }
99
+ .await;
100
101
match event_result? {
102
Ok(event) => {
103
// Only handle events that aren't None
104
if event != AppEvent::None {
105
self.handle_event(event);
-
106
+
107
// Only redraw after handling a real event
108
terminal.draw(|f| self.draw(f))?;
109
110
// Check if we should quit after handling the event
111
if self.should_quit() {
112
break;
0 commit comments