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;