Skip to content

Commit

Permalink
Longer polling duration #124
Browse files Browse the repository at this point in the history
  • Loading branch information
kyu08 committed Dec 4, 2023
1 parent 8cedac3 commit 5003eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usecase/fzf_make/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ fn run<B: Backend>(terminal: &mut Terminal<B>, mut model: Model) -> Result<Optio
}

fn handle_event(model: &Model) -> io::Result<Option<Message>> {
let message = if crossterm::event::poll(std::time::Duration::from_millis(250))? {
let message = if crossterm::event::poll(std::time::Duration::from_millis(2000))? {
if let crossterm::event::Event::Key(key) = crossterm::event::read()? {
match key.code {
KeyCode::Tab => Some(Message::MoveToNextPain),
Expand Down

0 comments on commit 5003eb8

Please sign in to comment.