summaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-08 06:52:04 +0000
committerBlaž Hrastnik2021-04-08 06:52:04 +0000
commit8b33ba2284f88bea4c6144364d75189255466661 (patch)
treeae826a57cbbb2134b5375e2c976c59eebcef856d /helix-term/src/application.rs
parent58c5fec592a825bed0b829cd0f46030c09cb0a11 (diff)
Correct the naming issue with vsplit and hsplit being swapped.
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 396bd565..71c6fba1 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -52,10 +52,10 @@ impl Application {
if let Ok(files) = args.values_of_t::<PathBuf>("files") {
for file in files {
- editor.open(file, Action::HorizontalSplit)?;
+ editor.open(file, Action::VerticalSplit)?;
}
} else {
- editor.new_file(Action::HorizontalSplit)?;
+ editor.new_file(Action::VerticalSplit)?;
}
compositor.push(Box::new(ui::EditorView::new()));