diff options
author | Cor | 2021-07-14 19:29:39 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-07-17 15:29:05 +0000 |
commit | 9fcbbfa46762484fc132383d9c2855ce37f60d6f (patch) | |
tree | 769979b8da28c9469f9226dffb71f3545eba609f /helix-view/src | |
parent | 000b7b7c977aef59907011dd9a14d7a5d76826da (diff) |
Changed startup behaviour to only open a single view when multiple files are specified on the commandline.
Changed the behaviour; the first argument on the commandline is the file on display
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/editor.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index a468b87c..cd9d0a92 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -39,6 +39,7 @@ pub struct Editor { #[derive(Debug, Copy, Clone)] pub enum Action { + Load, Replace, HorizontalSplit, VerticalSplit, @@ -151,6 +152,9 @@ impl Editor { return; } + Action::Load => { + return; + } Action::HorizontalSplit => { let view = View::new(id); let view_id = self.tree.split(view, Layout::Horizontal); |