summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-08-10 03:32:01 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commitd544376590e9e9d649cc7406282b5ebd54dc6f0a (patch)
treece1d9bc53d69fb996b379cc79b92f19a45007302 /helix-term/src
parente5fd5e2a9c78a3f391cda24cb57d187e248f06d1 (diff)
reset idle timer for all events
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index bae3f192..70eae18a 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -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();
+ }
}
}