noice

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

commit a75021c2d2ba1f23a110c5bfd795ef74e324e321
parent b0df3806deb4ae5c6eb01f7d6b71a50ca16610b7
Author: lostd <lostd@2f30.org>
Date:   Fri Oct 10 09:50:46 +0300

Reset to initial filter on directory change

Diffstat:
noice.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/noice.c b/noice.c @@ -450,6 +450,8 @@ nochange: strlcpy(tmp, dir, strlen(dir) + 1); free(path); path = tmp; + free(filter); + filter = strdup(ifilter); /* Reset filter */ goto out; } } @@ -490,6 +492,8 @@ nochange: if (S_ISDIR(sb.st_mode)) { free(path); path = pathnew; + free(filter); + filter = strdup(ifilter); /* Reset filter */ goto out; } /* Regular file */ @@ -538,6 +542,7 @@ nochange: printmsg(""); goto nochange; } + free(filter); filter = tmp; filter_re = re; DPRINTF_S(filter);