nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit af3d0a69bcb07e2e42bc7fd7a3d4a5277ef8b246
parent 20bb5388e6dff64168076fdac13b2ebad01c8b9e
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu, 19 Jul 2018 04:44:24 +0530

Show selection name in archive option

Diffstat:
Mnnn.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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: ");