README.md | 2 +- src/nnn.c | 6 +++--- diff --git a/README.md b/README.md index c047642c467ddb5d3af8308a1adbe44575e631be..0d395052542608f46541170296bd7933a65f5995 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Latest release Availability Travis Status CircleCI Status -Privacy Awareness +Privacy Awareness License

diff --git a/src/nnn.c b/src/nnn.c index 758f06dd017ecd0d677e0258d012f594339201a7..55278ccb8af308b347db0bf5e5aba56d0fef7c1e 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4958,10 +4958,11 @@ if (!ndents && (sel == SEL_OPENWITH || sel == SEL_RENAME)) break; + if (sel != SEL_OPENWITH) + endselection(path, newpath); + switch (sel) { case SEL_ARCHIVE: - endselection(path, newpath); - r = get_input(messages[MSG_CUR_SEL_OPTS]); if (r == 's') { if (!selsafe()) { @@ -5106,7 +5107,6 @@ } else if (r == 'd') { 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';