Skip to content

Commit

Permalink
reset idle timer for all events
Browse files Browse the repository at this point in the history
  • Loading branch information
dead10ck committed Oct 19, 2022
1 parent e5fd5e2 commit d544376
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions helix-term/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,18 +314,21 @@ impl Application {
event = self.editor.wait_event() => {
let _idle_handled = self.handle_editor_event(event).await;

// for integration tests only, reset the idle timer after every
// event to signal when test events are done processing
#[cfg(feature = "integration")]
{
if _idle_handled {
return true;
}

self.editor.reset_idle_timer();
}
}
}

// for integration tests only, reset the idle timer after every
// event to signal when test events are done processing
#[cfg(feature = "integration")]
{
self.editor.reset_idle_timer();
}
}
}

Expand Down

0 comments on commit d544376

Please sign in to comment.