From 092fb87e8d5932634afa9c723f63bb2749a3e173 Mon Sep 17 00:00:00 2001 From: Sergio Ribera Date: Sun, 24 Apr 2022 22:15:52 -0400 Subject: [PATCH] fix bad conditional --- src/cmd_line.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd_line.rs b/src/cmd_line.rs index 211d9aa..6a4b6e6 100644 --- a/src/cmd_line.rs +++ b/src/cmd_line.rs @@ -164,7 +164,7 @@ pub fn handle_command_line_arguments(args: Vec) -> Result<(), String> { .unwrap_or_default(); if files_to_open.len() > 1 - && !files_to_open.contains(&String::from("-p")) + && !neovim_args.contains(&String::from("-p")) && !matches.is_present("no_tabs") { neovim_args.push("-p".to_owned());