Issue 301 (#307)

* fix macos pathing nvim

* fmting target os

* return windows fix

* use Path
macos-click-through
j4qfrost 4 years ago committed by GitHub
parent 8d27c61234
commit b4abe370b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,6 +35,7 @@ fn set_windows_creation_flags(cmd: &mut Command) {
#[cfg(target_os = "windows")]
fn platform_build_nvim_cmd(bin: &str) -> Option<Command> {
use std::path::Path;
if !Path::new(&bin).exists() {
return None;
}
@ -54,7 +55,6 @@ fn platform_build_nvim_cmd(bin: &str) -> Option<Command> {
#[cfg(not(target_os = "windows"))]
fn platform_build_nvim_cmd(bin: &str) -> Option<Command> {
use std::path::Path;
if Path::new(&bin).exists() {
Some(Command::new(bin))
} else {

Loading…
Cancel
Save