Skip to content

Commit

Permalink
Fix #1704 - Show only selected file name if sel is preferred
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Aug 5, 2023
1 parent 3539e5c commit 693ba75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -7704,7 +7704,7 @@ static bool browse(char *ipath, const char *session, int pkey)
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;
Expand Down

0 comments on commit 693ba75

Please sign in to comment.