diff options
author | Blaž Hrastnik | 2021-03-16 14:14:51 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-16 14:14:51 +0000 |
commit | 51c15da3c32b2f0bf3da6db9bca9496d333ec15a (patch) | |
tree | 17f9bab081f0e9e58a967a62a73815a1fcf2acb3 /helix-term/src/application.rs | |
parent | 8dc0b18e35cdfdd76f435dcd43c1cfd5a3f0c7f7 (diff) |
Hold a reference to executor on the Editor type.
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index f239a2f0..ef33db16 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -36,11 +36,11 @@ impl Application { pub fn new(mut args: Args, executor: &'static smol::Executor<'static>) -> Result<Self, Error> { let mut compositor = Compositor::new()?; let size = compositor.size(); - let mut editor = Editor::new(size); + let mut editor = Editor::new(executor, size); let files = args.values_of_t::<PathBuf>("files").unwrap(); for file in files { - editor.open(file, executor)?; + editor.open(file)?; } compositor.push(Box::new(ui::EditorView::new())); |