From c322b79a040e3a36f27806e6d224f861ecfd8e32 Mon Sep 17 00:00:00 2001 From: Serhii Tereshchenko Date: Wed, 26 Jan 2022 06:43:00 +0200 Subject: [PATCH] fix: Fix opening files on linux (#1180) I don't know how about other OS where you using SHELL, but on linux you should pass arguments like this, or this happens: [src/bridge/command.rs:26] cmd = Command { std: "/usr/bin/nvim" "--embed README.md", kill_on_drop: false, } nvim: Unknown option argument: "--embed README.md" --- src/bridge/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bridge/command.rs b/src/bridge/command.rs index d0dd99c..adf339b 100644 --- a/src/bridge/command.rs +++ b/src/bridge/command.rs @@ -115,7 +115,7 @@ fn build_nvim_cmd_with_args(bin: &str) -> TokioCommand { cmd } else { let mut cmd = TokioCommand::new(bin); - cmd.arg(args_str); + cmd.args(args); cmd } }