@@ -83,15 +83,18 @@ impl Application {
8383 editor.new_file(Action::VerticalSplit);
8484 compositor.push(Box::new(ui::file_picker(first.clone())));
8585 } else {
86+ let nr_of_files = args.files.len();
87+ editor.open(first.to_path_buf(), Action::VerticalSplit)?;
8688 for file in args.files {
8789 if file.is_dir() {
8890 return Err(anyhow::anyhow!(
8991 "expected a path to file, found a directory. (to open a directory pass it as first argument)"
9092 ));
9193 } else {
92− editor.open(file, Action::VerticalSplit)?;
94+ editor.open(file.to_path_buf(), Action::Load)?;
9395 }
9496 }
97+ editor.set_status(format!("Loaded {} files.", nr_of_files));
9598 }
9699 } else {
97100 editor.new_file(Action::VerticalSplit);