From 693ba757c0ed2a644aa49e9e993132e407124155 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 5 Aug 2023 23:53:01 +0530 Subject: [PATCH] Fix #1704 - Show only selected file name if sel is preferred --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index f1a2ee74..5af2b1b7 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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; -- 2.44.0