Fix #1704 - Show only selected file name if sel is preferred

This commit is contained in:
Arun Prakash Jana 2023-08-05 23:53:01 +05:30
parent 3539e5c1b1
commit 693ba757c0
No known key found for this signature in database
GPG Key ID: 4A865183AF6C5631
1 changed files with 1 additions and 1 deletions

View File

@ -7704,7 +7704,7 @@ nochange:
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;