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