diff options
| author | 2014-10-22 16:26:58 +0300 | |
|---|---|---|
| committer | 2014-10-22 16:30:14 +0300 | |
| commit | 5aceade801f5d7c7cf44e528a9eae3ff24edfc72 (patch) | |
| tree | ef2e684d956230f994cd7bed2d5d967f7f466d5e | |
| parent | 9f3241b0837757304dc631311856db9ba009fb1f (diff) | |
| download | nnn-5aceade801f5d7c7cf44e528a9eae3ff24edfc72.tar.gz | |
Forget all history on manual dir change
| -rw-r--r-- | noice.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |