Skip to content

Commit

Permalink
fix: reduced the delay after executing a keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
caycun committed Sep 6, 2024
1 parent add7acb commit 7b88659
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut collections: Vec<OutputData> = Vec::new();
let mut running = true;
while running {

running = handle_events(&mut app).unwrap();
let id = rx.recv().unwrap();
if collections.is_empty() {
collections.push(id.clone());
Expand All @@ -82,7 +82,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}

terminal.draw(|f| ui(f, collections.clone(), &app)).unwrap();
running = handle_events(&mut app).unwrap();
}
disable_raw_mode().unwrap();
stdout().execute(LeaveAlternateScreen).unwrap();
Expand Down

0 comments on commit 7b88659

Please sign in to comment.