From 178705a9517a2a6a8b7c0abfa72b42c6d72e2afa Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 30 Nov 2019 16:15:12 +0530 Subject: [PATCH] End selection before archive, new, rename --- README.md | 2 +- src/nnn.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c047642c..0d395052 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Availability Travis Status CircleCI Status -Privacy Awareness +Privacy Awareness License

diff --git a/src/nnn.c b/src/nnn.c index 758f06dd..55278ccb 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';