mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
prefill the prompt when there's a single target
Fixes: #1505 #1282 #1345
This commit is contained in:
parent
38b7282050
commit
e5074ebc83
|
@ -7538,7 +7538,7 @@ nochange:
|
|||
if (r == 'f' || r == 'd')
|
||||
tmp = xreadline(NULL, messages[MSG_NEW_PATH]);
|
||||
else if (r == 's' || r == 'h')
|
||||
tmp = xreadline(NULL,
|
||||
tmp = xreadline(nselected == 1 ? xbasename(pselbuf) : NULL,
|
||||
messages[nselected <= 1?MSG_NEW_PATH:MSG_LINK_PREFIX]);
|
||||
else
|
||||
tmp = NULL;
|
||||
|
|
Loading…
Reference in a new issue