src/nnn.c | 5 +++-- diff --git a/src/nnn.c b/src/nnn.c index e4693897793a47408cf496669cf6f452cf921ad9..16f94ad0cf957c6f7a5c509b7dde80b10f374e87 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2116,7 +2116,7 @@ "tr '\\0' '\n' < '%s' | sed -e 's|^%s/||' | tr '\n' '\\0' | xargs -0 %s %s", selpath, curpath, cmd, archive #endif ); - spawn(utils[UTIL_SH_EXEC], buf, NULL, F_CLI); + spawn(utils[UTIL_SH_EXEC], buf, NULL, F_CLI | F_CONFIRM); free(buf); } @@ -6351,12 +6351,13 @@ } } get_archive_cmd(newpath, tmp); (r == 's') ? archive_selection(newpath, tmp, path) - : spawn(newpath, tmp, pdents[cur].name, F_NORMAL | F_MULTI); + : spawn(newpath, tmp, pdents[cur].name, F_CLI | F_CONFIRM); mkpath(path, tmp, newpath); if (access(newpath, F_OK) == 0) { /* File created */ xstrsncpy(lastname, tmp, NAME_MAX + 1); clearfilter(); /* Archive name may not match */ + clearselection(); /* Archive operation complete */ goto begin; } continue;