Browse Source

Forget all history on manual dir change

master
lostd 10 years ago
parent
commit
5aceade801
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      noice.c

+ 6
- 0
noice.c 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;


Loading…
Cancel
Save