mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Fix #1345: allow symlink name '@' in single file case
This commit is contained in:
parent
15243186c5
commit
6b9f8f3666
|
@ -7657,7 +7657,7 @@ nochange:
|
||||||
mkpath(path, tmp, newpath);
|
mkpath(path, tmp, newpath);
|
||||||
ret = xmktree(newpath, r == 'f' ? FALSE : TRUE);
|
ret = xmktree(newpath, r == 'f' ? FALSE : TRUE);
|
||||||
} else if (r == 's' || r == 'h') {
|
} else if (r == 's' || r == 'h') {
|
||||||
if (tmp[0] == '@' && tmp[1] == '\0')
|
if (nselected > 1 && tmp[0] == '@' && tmp[1] == '\0')
|
||||||
tmp[0] = '\0';
|
tmp[0] = '\0';
|
||||||
ret = xlink(tmp, path, (ndents ? pdents[cur].name : NULL),
|
ret = xlink(tmp, path, (ndents ? pdents[cur].name : NULL),
|
||||||
newpath, &presel, r);
|
newpath, &presel, r);
|
||||||
|
|
Loading…
Reference in a new issue