aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-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