|
|
@ -170,7 +170,16 @@ pub fn handle_command_line_arguments(args: Vec<String>) -> Result<(), String> {
|
|
|
|
neovim_args.push("-p".to_owned());
|
|
|
|
neovim_args.push("-p".to_owned());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
neovim_args.extend::<Vec<String>>(files_to_open);
|
|
|
|
if cfg!(target_os = "macos") {
|
|
|
|
|
|
|
|
// escape filepath which contain spaces
|
|
|
|
|
|
|
|
neovim_args.extend(
|
|
|
|
|
|
|
|
files_to_open
|
|
|
|
|
|
|
|
.iter()
|
|
|
|
|
|
|
|
.map(|file| shlex::quote(file).into_owned()),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
neovim_args.extend::<Vec<String>>(files_to_open);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Integrate Environment Variables as Defaults to the command-line ones.
|
|
|
|
* Integrate Environment Variables as Defaults to the command-line ones.
|
|
|
|