diff options
author | lostd <lostd@2f30.org> | 2014-10-10 09:50:46 +0300 |
---|---|---|
committer | lostd <lostd@2f30.org> | 2014-10-10 09:50:46 +0300 |
commit | a75021c2d2ba1f23a110c5bfd795ef74e324e321 (patch) | |
tree | 0f9fd646a2bbf1540fbf43f50f836d763bb27a9d | |
parent | b0df3806deb4ae5c6eb01f7d6b71a50ca16610b7 (diff) | |
download | nnn-a75021c2d2ba1f23a110c5bfd795ef74e324e321.tar.gz |
Reset to initial filter on directory change
-rw-r--r-- | noice.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |