aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-29 20:26:31 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-29 20:26:31 +0530
commit3d9905615da3304cb02a3daa010fe5f7e7003752 (patch)
tree4c40557172af6542f977fa35951a70ac4abd27a7 /src
parent267dc04f6c2df2f46860babedc369727956aca2d (diff)
downloadnnn-3d9905615da3304cb02a3daa010fe5f7e7003752.tar.gz
Fix crash
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 92197cd..5960c87 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5877,7 +5877,7 @@ nochange:
if (access(newpath, F_OK) == 0) /* File not removed */
continue;
- if (ndents) {
+ if (cur) {
cur += (cur != (ndents - 1)) ? 1 : -1;
copycurname();
} else