static void move_cursor(int target, int ignore_scrolloff);
static char *load_input(int fd, const char *path);
static int set_sort_flags(int r);
+static void statusbar(char *path);
#ifndef NOFIFO
static void notify_fifo(bool force);
#endif
redraw(path);
}
- if (!cfg.filtermode)
+ if (!cfg.filtermode) {
+ statusbar(path);
return 0;
+ }
len = mbstowcs(wln, ln, REGEX_MAX);
} else {
header.pathln[i] = strnlen(g_ctx[i].c_path, PATH_MAX) + 1;
header.lastln[i] = strnlen(g_ctx[i].c_last, PATH_MAX) + 1;
header.nameln[i] = strnlen(g_ctx[i].c_name, NAME_MAX) + 1;
- header.fltrln[i] = strnlen(g_ctx[i].c_fltr, REGEX_MAX) + 1;
+ header.fltrln[i] = REGEX_MAX;
}
}
atexit(dentfree);
- xlines = LINES;
- xcols = COLS;
+ getmaxyx(stdscr, xlines, xcols);
#ifndef NOSSN
/* set-up first context */
newpath[0] = rundir[0] = runfile[0] = '\0';
- presel = pkey ? ';' : (cfg.filtermode ? FILTER : 0);
+ presel = pkey ? ';' : ((cfg.filtermode
+ || (session && (g_ctx[cfg.curctx].c_fltr[0] == FILTER
+ || g_ctx[cfg.curctx].c_fltr[0] == RFILTER)
+ && g_ctx[cfg.curctx].c_fltr[1])) ? FILTER : 0);
pdents = xrealloc(pdents, total_dents * sizeof(struct entry));
if (!pdents)