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
1 changed files with 5 additions and 1 deletions

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