mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Fix #1704 - Show only selected file name if sel is preferred
This commit is contained in:
parent
3539e5c1b1
commit
693ba757c0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue