aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-11 21:59:34 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-11 21:59:34 +0530
commit02754205a295bbd57872be9a41df57f1a8289325 (patch)
tree3e97cc8473c3d782d249c91fb176b0e9fbfa5324 /src
parentf527dd1c6a6f2065ce9cdfb4337399021265631f (diff)
downloadnnn-02754205a295bbd57872be9a41df57f1a8289325.tar.gz
Fix #492
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index c99af5a..cdb8590 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))