Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/main.rs')
-rw-r--r--helix-term/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs
index ccbba2e9..c1404d4f 100644
--- a/helix-term/src/main.rs
+++ b/helix-term/src/main.rs
@@ -1,5 +1,4 @@
use anyhow::{Context, Error, Result};
-use crossterm::event::EventStream;
use helix_loader::VERSION_AND_GIT_HASH;
use helix_term::application::Application;
use helix_term::args::Args;
@@ -151,8 +150,9 @@ FLAGS:
// TODO: use the thread local executor to spawn the application task separately from the work pool
let mut app = Application::new(args, config, lang_loader).context("unable to start Helix")?;
+ let mut events = app.event_stream();
- let exit_code = app.run(&mut EventStream::new()).await?;
+ let exit_code = app.run(&mut events).await?;
Ok(exit_code)
}