Show selection name in archive option

This commit is contained in:
Arun Prakash Jana 2018-07-19 04:44:24 +05:30
parent 20bb5388e6
commit af3d0a69bc
No known key found for this signature in database
GPG key ID: A75979F35C080412

6
nnn.c
View file

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