aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-08 03:27:41 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-08 03:27:41 +0530
commit77fec499cb71069e58c525f07e95de531763a933 (patch)
tree4b183de7964eb71b59b936e624a3270c1bd3b468
parent9cded0be0ebd976b5fb57648ac279d0bfbe47a04 (diff)
downloadnnn-77fec499cb71069e58c525f07e95de531763a933.tar.gz
Open with GUI app - Suppress stdout, stderr
-rw-r--r--nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nnn.c b/nnn.c
index ce9a9ef..c7e5d48 100644
--- a/nnn.c
+++ b/nnn.c
@@ -167,7 +167,7 @@ disabledbg()
#define F_NOWAIT 0x02 /* don't wait for child process (e.g. file manager) */
#define F_NOTRACE 0x04 /* suppress stdout and strerr (no traces) */
#define F_SIGINT 0x08 /* restore default SIGINT handler */
-#define F_NORMAL 0x80 /* spawn child process in non-curses regular mode */
+#define F_NORMAL 0x80 /* spawn child process in non-curses regular CLI mode */
#define exitcurses() endwin()
#define clearprompt() printmsg("")
@@ -2746,7 +2746,7 @@ nochange:
if (r == 'c')
r = F_NORMAL;
else
- r = F_NOWAIT;
+ r = F_NOWAIT | F_NOTRACE;
mkpath(path, dents[cur].name, newpath, PATH_MAX);
spawn(tmp, newpath, NULL, path, r);