1
1
mirror of https://github.com/jarun/nnn.git synced 2024-09-20 01:08:27 +03:00

Forget all history on manual dir change

This commit is contained in:
lostd 2014-10-22 16:26:58 +03:00
parent 9f3241b083
commit 5aceade801

View File

@ -676,6 +676,12 @@ nochange:
free(tmp);
free(filter);
filter = xstrdup(ifilter); /* Reset filter */
/* Forget history */
while (!SLIST_EMPTY(&histhead)) {
hist = SLIST_FIRST(&histhead);
SLIST_REMOVE_HEAD(&histhead, entry);
free(hist);
}
DPRINTF_S(path);
cur = 0;
goto out;