Fix recursion when using -- to pass args to nvim. (#854)

Co-authored-by: Marcus Forsberg <mforsb92@gmail.com>
macos-click-through
mforsb 3 years ago committed by GitHub
parent 6a744fee2c
commit 178cbafb2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -208,8 +208,8 @@ fn maybe_disown() {
if let Ok(current_exe) = env::current_exe() { if let Ok(current_exe) = env::current_exe() {
assert!(process::Command::new(current_exe) assert!(process::Command::new(current_exe)
.args(env::args().skip(1))
.arg("--nofork") .arg("--nofork")
.args(env::args().skip(1))
.spawn() .spawn()
.is_ok()); .is_ok());
process::exit(0); process::exit(0);

Loading…
Cancel
Save