aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-07-19 04:44:24 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-07-19 04:44:24 +0530
commitaf3d0a69bcb07e2e42bc7fd7a3d4a5277ef8b246 (patch)
tree462f8f2467d3a519715544358ab8079049099133 /nnn.c
parent20bb5388e6dff64168076fdac13b2ebad01c8b9e (diff)
downloadnnn-af3d0a69bcb07e2e42bc7fd7a3d4a5277ef8b246.tar.gz
Show selection name in archive option
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index af1d7b6..ed5bd67 100644
--- a/nnn.c
+++ b/nnn.c
@@ -3078,10 +3078,14 @@ nochange:
printmsg("quotes off");
goto nochange;
case SEL_OPEN: // fallthrough
- case SEL_ARCHIVE: // fallthrough
+ case SEL_ARCHIVE:
+ if (ndents <= 0)
+ break; // fallthrough
case SEL_NEW:
if (sel == SEL_OPEN)
tmp = xreadline(NULL, "open with: ");
+ else if (sel == SEL_ARCHIVE)
+ tmp = xreadline(dents[cur].name, "name: ");
else
tmp = xreadline(NULL, "name: ");