mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Restore check to prevent overwriting hovered file when archiving
This commit is contained in:
parent
e8bc59a816
commit
2e84716e76
|
@ -7610,6 +7610,9 @@ nochange:
|
||||||
|
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
case SEL_ARCHIVE:
|
case SEL_ARCHIVE:
|
||||||
|
if (r == 'c' && strcmp(tmp, pdents[cur].name) == 0)
|
||||||
|
continue; /* Cannot overwrite the hovered file */
|
||||||
|
|
||||||
tmp = abspath(tmp, NULL, newpath);
|
tmp = abspath(tmp, NULL, newpath);
|
||||||
if (!tmp)
|
if (!tmp)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue