aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 4a24492..344b04d 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3602,6 +3602,7 @@ nochange:
if (!cfg.filtermode && cur && access(newpath, F_OK) == -1)
--cur;
+ /* We reduce cur only if it is > 0, so it's at least 0 */
copycurname();
if (cfg.filtermode)