noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | LICENSE

commit 5aceade801f5d7c7cf44e528a9eae3ff24edfc72
parent 9f3241b0837757304dc631311856db9ba009fb1f
Author: lostd <lostd@2f30.org>
Date:   Wed, 22 Oct 2014 16:26:58 +0300

Forget all history on manual dir change

Diffstat:
noice.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/noice.c b/noice.c @@ -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;