aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 758f06d..55278cc 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4958,10 +4958,11 @@ nochange:
if (!ndents && (sel == SEL_OPENWITH || sel == SEL_RENAME))
break;
- switch (sel) {
- case SEL_ARCHIVE:
+ if (sel != SEL_OPENWITH)
endselection(path, newpath);
+ switch (sel) {
+ case SEL_ARCHIVE:
r = get_input(messages[MSG_CUR_SEL_OPTS]);
if (r == 's') {
if (!selsafe()) {
@@ -5106,7 +5107,6 @@ nochange:
mkpath(path, tmp, newpath);
r = xmktree(newpath, TRUE);
} else if (r == 's' || r == 'h') {
- endselection(path, newpath);
if (tmp[0] == '@' && tmp[1] == '\0')
tmp[0] = '\0';