diff options
author | Skyler Hawthorne | 2022-06-11 03:35:34 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-06-19 04:00:31 +0000 |
commit | 665286c199b344c0bd65772156b5e460ff11d768 (patch) | |
tree | ea11016ae97144d4424bfbd4ec4d971d152493ea /helix-term/src | |
parent | 65bf6836b71e309a43d39b75a3fac7446604592b (diff) |
factor new Application with file arg to function
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/application.rs | 4 |
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; } } |