nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6b9f8f36669fc33610ed0d9616f5fabfb8f7c212
parent 15243186c5525ef6eb4bf065b27bc6062ee98651
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 20 Apr 2022 20:20:25 +0530

Fix #1345: allow symlink name '@' in single file case

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -7657,7 +7657,7 @@ nochange: mkpath(path, tmp, newpath); ret = xmktree(newpath, r == 'f' ? FALSE : TRUE); } else if (r == 's' || r == 'h') { - if (tmp[0] == '@' && tmp[1] == '\0') + if (nselected > 1 && tmp[0] == '@' && tmp[1] == '\0') tmp[0] = '\0'; ret = xlink(tmp, path, (ndents ? pdents[cur].name : NULL), newpath, &presel, r);