mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Forget all history on manual dir change
This commit is contained in:
parent
9f3241b083
commit
5aceade801
6
noice.c
6
noice.c
|
@ -676,6 +676,12 @@ nochange:
|
||||||
free(tmp);
|
free(tmp);
|
||||||
free(filter);
|
free(filter);
|
||||||
filter = xstrdup(ifilter); /* Reset 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);
|
DPRINTF_S(path);
|
||||||
cur = 0;
|
cur = 0;
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue