瀏覽代碼

Fix #582

master
Arun Prakash Jana 4 年之前
父節點
當前提交
9e41c39138
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 4 行新增6 行删除
  1. +4
    -6
      src/nnn.c

+ 4
- 6
src/nnn.c 查看文件

@@ -4731,17 +4731,15 @@ static void notify_fifo()
}
}

static char *name = NULL;
static time_t t = {0};
static struct entry lastentry = {0};

if (dents[cur].name == name && dents[cur].t == t)
if (!memcmp(&lastentry, &dents[cur], sizeof(struct entry)))
return;

name = dents[cur].name;
t = dents[cur].t;
lastentry = dents[cur];

char path[PATH_MAX];
size_t len = mkpath(g_ctx[cfg.curctx].c_path, ndents ? name : "", path);
size_t len = mkpath(g_ctx[cfg.curctx].c_path, ndents ? dents[cur].name : "", path);

path[len - 1] = '\n';



Loading…
取消
儲存