aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-04-09 17:02:20 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-04-09 17:02:20 +0530
commit7ada9a0b6bca10a2b576cf59f7bad673b6857961 (patch)
tree40977b6b4dbe8896d6b29b539cc31db8c863d6f8 /src/nnn.c
parentc75e0a886f533c413a224d14e36eaf6f4fa1be2d (diff)
downloadnnn-7ada9a0b6bca10a2b576cf59f7bad673b6857961.tar.gz
Add comment
Diffstat (limited to 'src/nnn.c')
-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)