Pārlūkot izejas kodu

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 pirms 5 gadiem
vecāks
revīzija
d640de2589
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      src/nnn.c

+ 3
- 0
src/nnn.c Parādīt failu

@@ -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);


Notiek ielāde…
Atcelt
Saglabāt