mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Fix crash
This commit is contained in:
parent
267dc04f6c
commit
3d9905615d
|
@ -5877,7 +5877,7 @@ nochange:
|
||||||
if (access(newpath, F_OK) == 0) /* File not removed */
|
if (access(newpath, F_OK) == 0) /* File not removed */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (ndents) {
|
if (cur) {
|
||||||
cur += (cur != (ndents - 1)) ? 1 : -1;
|
cur += (cur != (ndents - 1)) ? 1 : -1;
|
||||||
copycurname();
|
copycurname();
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue