diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-07-19 04:44:24 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-07-19 04:44:24 +0530 |
commit | af3d0a69bcb07e2e42bc7fd7a3d4a5277ef8b246 (patch) | |
tree | 462f8f2467d3a519715544358ab8079049099133 /nnn.c | |
parent | 20bb5388e6dff64168076fdac13b2ebad01c8b9e (diff) | |
download | nnn-af3d0a69bcb07e2e42bc7fd7a3d4a5277ef8b246.tar.gz |
Show selection name in archive option
Diffstat (limited to 'nnn.c')
-rw-r--r-- | nnn.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: "); |