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"
macos-click-through
Serhii Tereshchenko 3 years ago committed by GitHub
parent 6225e22da2
commit c322b79a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,7 +115,7 @@ fn build_nvim_cmd_with_args(bin: &str) -> TokioCommand {
cmd cmd
} else { } else {
let mut cmd = TokioCommand::new(bin); let mut cmd = TokioCommand::new(bin);
cmd.arg(args_str); cmd.args(args);
cmd cmd
} }
} }

Loading…
Cancel
Save