diff --git a/src/nnn.c b/src/nnn.c index f1a2ee741..5af2b1b73 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -7704,7 +7704,7 @@ static bool browse(char *ipath, const char *session, int pkey) if (r == 'f' || r == 'd') tmp = xreadline(tmp, messages[MSG_NEW_PATH]); else if (r == 's' || r == 'h') - tmp = xreadline(NULL, + tmp = xreadline((nselected == 1 && cfg.prefersel) ? xbasename(pselbuf) : NULL, messages[nselected <= 1 ? MSG_NEW_PATH : MSG_LINK_PREFIX]); else tmp = NULL;