From 178cbafb2fd00ae50cc2d6f737306731c6a1ffc8 Mon Sep 17 00:00:00 2001 From: mforsb Date: Wed, 4 Aug 2021 20:12:49 +0200 Subject: [PATCH] Fix recursion when using -- to pass args to nvim. (#854) Co-authored-by: Marcus Forsberg --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5f826ed..b72c795 100644 --- a/src/main.rs +++ b/src/main.rs @@ -208,8 +208,8 @@ fn maybe_disown() { if let Ok(current_exe) = env::current_exe() { assert!(process::Command::new(current_exe) - .args(env::args().skip(1)) .arg("--nofork") + .args(env::args().skip(1)) .spawn() .is_ok()); process::exit(0);