Skip to content

Commit

Permalink
reset idle timer when job completes
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe committed Dec 11, 2022
1 parent d14de27 commit 46ad4b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-term/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,12 @@ impl Application {
Some(callback) = self.jobs.futures.next() => {
self.jobs.handle_callback(&mut self.editor, &mut self.compositor, callback);
self.render().await;
self.editor.reset_idle_timer();
}
Some(callback) = self.jobs.wait_futures.next() => {
self.jobs.handle_callback(&mut self.editor, &mut self.compositor, callback);
self.render().await;
self.editor.reset_idle_timer();
}
event = self.editor.wait_event() => {
let _idle_handled = self.handle_editor_event(event).await;
Expand Down

0 comments on commit 46ad4b9

Please sign in to comment.