From: Arun Prakash Jana Date: Wed, 11 Mar 2020 16:29:34 +0000 (+0530) Subject: Fix #492 X-Git-Tag: v3.1~87 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=02754205a295bbd57872be9a41df57f1a8289325;p=nnn.git Fix #492 --- diff --git a/src/nnn.c b/src/nnn.c index c99af5a3..cdb85907 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4232,7 +4232,7 @@ static void launch_app(const char *path, char *newpath) } if (tmp && *tmp) // NOLINT - spawn(tmp, "0", NULL, path, r); + spawn(tmp, (r == F_NORMAL) ? "0" : NULL, NULL, path, r); } static int sum_bsize(const char *UNUSED(fpath), const struct stat *sb, int typeflag, struct FTW *UNUSED(ftwbuf))