}
/* If the only match is a dir, auto-enter and cd into it */
- if (ndents == 1 && cfg.filtermode
- && cfg.autoenter && (pdents[0].flags & DIR_OR_DIRLNK)) {
+ if ((ndents == 1) && cfg.autoenter && (pdents[0].flags & DIR_OR_DIRLNK)) {
*ch = KEY_ENTER;
cur = 0;
goto end;
if (strcmp(path, newpath) == 0)
break;
+ if (g_state.selbm == 1) /* Allow filtering in bookmarks directory */
+ presel = FILTER;
}
/* In list mode, retain the last file name to highlight it, if possible */
}
setdirwatch();
clearfilter();
+ if (g_state.runplugin == 1) /* Allow filtering in plugins directory */
+ presel = FILTER;
goto begin;
case SEL_SHELL: // fallthrough
case SEL_LAUNCH: // fallthrough