aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-06-11 03:35:34 +0000
committerSkyler Hawthorne2022-06-19 04:00:31 +0000
commit665286c199b344c0bd65772156b5e460ff11d768 (patch)
treeea11016ae97144d4424bfbd4ec4d971d152493ea /helix-term/src/application.rs
parent65bf6836b71e309a43d39b75a3fac7446604592b (diff)
factor new Application with file arg to function
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 2790c9a4..48e9c275 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -239,11 +239,9 @@ impl Application {
self.last_render = Instant::now();
loop {
- if self.editor.should_close() {
+ if !self.event_loop_until_idle(input_stream).await {
break;
}
-
- self.event_loop_until_idle(input_stream).await;
}
}