aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-24 05:28:26 +0000
committerBlaž Hrastnik2021-03-24 05:28:26 +0000
commit8a0ab447ecfa6c2c448603d469ba4fd06e95c754 (patch)
tree9bf78106dbc54d02f7938d287467da44feaffe9d /helix-term/src/application.rs
parentb24cdd1295d1129dc730e02da2c6723938220d7e (diff)
editor.open can now either replace the current view or open in a split.
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 38c0d88a..dcc6433b 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -39,7 +39,8 @@ impl Application {
let files = args.values_of_t::<PathBuf>("files").unwrap();
for file in files {
- editor.open(file)?;
+ use helix_view::editor::Action;
+ editor.open(file, Action::HorizontalSplit)?;
}
compositor.push(Box::new(ui::EditorView::new()));