diff options
| author | 2019-11-30 16:15:12 +0530 | |
|---|---|---|
| committer | 2019-11-30 16:15:12 +0530 | |
| commit | 178705a9517a2a6a8b7c0abfa72b42c6d72e2afa (patch) | |
| tree | 328d8a7136030a2b47ba616463a2e0fb6cf7e520 /src | |
| parent | b3b1384740eb02ede319cd354620ff7ce3108593 (diff) | |
| download | nnn-178705a9517a2a6a8b7c0abfa72b42c6d72e2afa.tar.gz | |
End selection before archive, new, rename
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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'; |