aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-08-03 14:57:00 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-08-03 14:57:00 +0530
commitf03ddb587ccfa07c7a9c9099d8d1e21439a65887 (patch)
treeb54ceb9fcc5f922c8bb368aaf39e74d7de213090 /src
parent2fbb6ae35f73768b1533d565fe63023671871daf (diff)
downloadnnn-f03ddb587ccfa07c7a9c9099d8d1e21439a65887.tar.gz
Fix #691
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index e469389..16f94ad 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2116,7 +2116,7 @@ static void archive_selection(const char *cmd, const char *archive, const char *
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 @@ nochange:
}
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;