Fix reverting filtermode on empty directory

This commit is contained in:
Arun Prakash Jana 2022-05-29 20:17:55 +05:30
parent 31a273fdd0
commit 4337214f50
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 1 deletions

View File

@ -6908,7 +6908,8 @@ nochange:
/* Cannot descend in empty directories */
if (!ndents) {
cd = FALSE;
cfg.filtermode = g_state.selbm - 1;
if (g_state.selbm)
cfg.filtermode = g_state.selbm - 1;
g_state.selbm = g_state.runplugin = 0;
goto begin;
}