This commit is contained in:
Arun Prakash Jana 2019-03-02 09:25:43 +05:30
parent 764c1fe60c
commit 3f262910d3
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -976,11 +976,11 @@ static void spawn(const char *file, const char *arg1, const char *arg2, const ch
arg2 = tmp;
}
pid = fork();
if (pid == 0) {
if (flag & F_NORMAL)
exitcurses();
pid = fork();
if (pid == 0) {
if (dir != NULL)
status = chdir(dir);
@ -1017,9 +1017,12 @@ static void spawn(const char *file, const char *arg1, const char *arg2, const ch
DPRINTF_D(status);
DPRINTF_D(pid);
if (flag & F_NORMAL)
if (flag & F_NORMAL) {
exitcurses();
initcurses();
refresh();
}
}
}
/*