瀏覽代碼

Keep lastname directory selected

incase the user just lost access, it would be better to remember the
selected directory to keep it highlighted.
master
0xACE 6 年之前
父節點
當前提交
d640de2589
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      src/nnn.c

+ 3
- 0
src/nnn.c 查看文件

@@ -3301,6 +3301,9 @@ nochange:
if (access(path, F_OK)) {
DPRINTF_S("dir deleted or moved");

/* Save history */
xstrlcpy(lastname, xbasename(path), NAME_MAX + 1);

xstrlcpy(newpath, path, PATH_MAX);
while (true) {
dir = visit_parent(path, newpath, &presel);


Loading…
取消
儲存