From 46ad4b99390a1b63864ea256a081abf558989f73 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Sun, 11 Dec 2022 01:47:01 +0100 Subject: [PATCH] reset idle timer when job completes --- helix-term/src/application.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 7a50e007b9b9..f665c924c3da 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -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;