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