mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix broken window due to double spawn
This commit is contained in:
parent
b2e7f7794c
commit
825effb264
10
src/nnn.c
10
src/nnn.c
|
@ -4856,14 +4856,10 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch
|
||||||
flags = F_MULTI | F_CONFIRM;
|
flags = F_MULTI | F_CONFIRM;
|
||||||
++file;
|
++file;
|
||||||
|
|
||||||
/* Check if output should be paged */
|
if (*file == '|') { /* Check if output should be paged */
|
||||||
if (*file == '|') {
|
|
||||||
flags |= F_PAGE;
|
flags |= F_PAGE;
|
||||||
++file;
|
++file;
|
||||||
}
|
} else if (*file == '&') { /* Check if GUI flags are to be used */
|
||||||
|
|
||||||
/* Check if GUI flags are to be used */
|
|
||||||
if (*file == '&') {
|
|
||||||
flags = F_NOTRACE | F_NOWAIT;
|
flags = F_NOTRACE | F_NOWAIT;
|
||||||
++file;
|
++file;
|
||||||
}
|
}
|
||||||
|
@ -4871,7 +4867,7 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch
|
||||||
if (!*file)
|
if (!*file)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (flags & F_NOTRACE) {
|
if ((flags & F_NOTRACE) || (flags & F_PAGE)) {
|
||||||
run_cmd_as_plugin(file, runfile, flags);
|
run_cmd_as_plugin(file, runfile, flags);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue