Skip to content

Commit 7b88659

Browse files
committed
fix: reduced the delay after executing a keybind
1 parent add7acb commit 7b88659

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
5555
let mut collections: Vec<OutputData> = Vec::new();
5656
let mut running = true;
5757
while running {
58-
58+
running = handle_events(&mut app).unwrap();
5959
let id = rx.recv().unwrap();
6060
if collections.is_empty() {
6161
collections.push(id.clone());
@@ -82,7 +82,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
8282
}
8383

8484
terminal.draw(|f| ui(f, collections.clone(), &app)).unwrap();
85-
running = handle_events(&mut app).unwrap();
8685
}
8786
disable_raw_mode().unwrap();
8887
stdout().execute(LeaveAlternateScreen).unwrap();

0 commit comments

Comments
 (0)