From 9fcbbfa46762484fc132383d9c2855ce37f60d6f Mon Sep 17 00:00:00 2001 From: Cor Date: Wed, 14 Jul 2021 21:29:39 +0200 Subject: 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 --- helix-view/src/editor.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'helix-view/src') 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); -- cgit v1.2.3-70-g09d2