mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix no preview update when dir changed with same entry number hovered
This commit is contained in:
parent
ce06bf15d6
commit
ab9f560fa8
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue