aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-06 19:29:46 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-06 19:29:46 +0530
commitab9f560fa8c06d9cf2fdc2c7dcbe572d1781a75a (patch)
tree91a7b462145dd350ecd2e951c0f8120cbe7afc85 /src
parentce06bf15d6e61b24c3cebe50b3ce9a9200364bda (diff)
downloadnnn-ab9f560fa8c06d9cf2fdc2c7dcbe572d1781a75a.tar.gz
Fix no preview update when dir changed with same entry number hovered
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 17199cd..19a5ea5 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4691,11 +4691,13 @@ static void notify_fifo()
}
static char *name = NULL;
+ static time_t t = {0};
- if (dents[cur].name == name)
+ if (dents[cur].name == name && dents[cur].t == t)
return;
name = dents[cur].name;
+ t = dents[cur].t;
char path[PATH_MAX];
size_t len = mkpath(g_ctx[cfg.curctx].c_path, ndents ? name : "", path);