src/nnn.c | 10 +++------- diff --git a/src/nnn.c b/src/nnn.c index 1c99383850a24810baa34129983ddea4c665e4de..4a939dc08d04823f9537282aa49dc3c2eb6a8e41 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4856,14 +4856,10 @@ if (*file == '!') { flags = F_MULTI | F_CONFIRM; ++file; - /* Check if output should be paged */ - if (*file == '|') { + if (*file == '|') { /* Check if output should be paged */ flags |= F_PAGE; ++file; - } - - /* Check if GUI flags are to be used */ - if (*file == '&') { + } else if (*file == '&') { /* Check if GUI flags are to be used */ flags = F_NOTRACE | F_NOWAIT; ++file; } @@ -4871,7 +4867,7 @@ if (!*file) return FALSE; - if (flags & F_NOTRACE) { + if ((flags & F_NOTRACE) || (flags & F_PAGE)) { run_cmd_as_plugin(file, runfile, flags); return TRUE; }