diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-29 04:04:57 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-29 04:04:57 +0530 |
commit | df1e17a4c297a9e9ec1c3f7d93f89506719c3e91 (patch) | |
tree | 34b75dececb6a86f46a3de59d3de36a8058784b8 | |
parent | dc7711271cb29d20b0d5ca34f876631885c131f4 (diff) | |
download | nnn-df1e17a4c297a9e9ec1c3f7d93f89506719c3e91.tar.gz |
Reload dir when entering filter mode
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -691,6 +691,7 @@ static haiku_nm_h haiku_hnd; /* Forward declarations */ static size_t xstrlcpy(char *dest, const char *src, size_t n); +static int dentfill(char *path, struct entry **dents); static void redraw(char *path); static int spawn(char *file, char *arg1, char *arg2, const char *dir, uchar flag); static int (*nftw_fn)(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf); @@ -2493,6 +2494,7 @@ static int filterentries(char *path, char *lastname) char *pln = g_ctx[cfg.curctx].c_fltr + 1; if (ndents && (ln[0] == FILTER || ln[0] == RFILTER) && *pln) { + total = ndents = dentfill(path, &dents); if (matches(pln) != -1) { move_cursor(dentfind(lastname, ndents), 0); redraw(path); |