commit 0c4180f2d82fe914a8ab771047e66e9f696c5ccc
parent 38b728205013979f376594d997c5fcb8574946f5
Author: Arun <engineerarun@gmail.com>
Date: Wed, 12 Oct 2022 06:04:20 +0530
Merge pull request #1507 from N-R-K/prompt_prefill
prefill the prompt when there's a single target
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -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;