mirror of https://github.com/jarun/nnn.git
Show selection name in archive option
This commit is contained in:
parent
20bb5388e6
commit
af3d0a69bc
6
nnn.c
6
nnn.c
|
@ -3078,10 +3078,14 @@ nochange:
|
||||||
printmsg("quotes off");
|
printmsg("quotes off");
|
||||||
goto nochange;
|
goto nochange;
|
||||||
case SEL_OPEN: // fallthrough
|
case SEL_OPEN: // fallthrough
|
||||||
case SEL_ARCHIVE: // fallthrough
|
case SEL_ARCHIVE:
|
||||||
|
if (ndents <= 0)
|
||||||
|
break; // fallthrough
|
||||||
case SEL_NEW:
|
case SEL_NEW:
|
||||||
if (sel == SEL_OPEN)
|
if (sel == SEL_OPEN)
|
||||||
tmp = xreadline(NULL, "open with: ");
|
tmp = xreadline(NULL, "open with: ");
|
||||||
|
else if (sel == SEL_ARCHIVE)
|
||||||
|
tmp = xreadline(dents[cur].name, "name: ");
|
||||||
else
|
else
|
||||||
tmp = xreadline(NULL, "name: ");
|
tmp = xreadline(NULL, "name: ");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue