瀏覽代碼

Reset to initial filter on directory change

master
lostd 10 年之前
父節點
當前提交
a75021c2d2
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      noice.c

+ 5
- 0
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);


Loading…
取消
儲存