aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs4
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()));