projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a273f
)
Fix reverting filtermode on empty directory
author
Arun Prakash Jana <engineerarun@gmail.com>
Sun, 29 May 2022 14:47:55 +0000 (20:17 +0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Sun, 29 May 2022 14:47:55 +0000 (20:17 +0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index 0c2b8107a7813b32df68c8422bbcf35a809a9587..ca0aab23539496467fbca94c6758852a0c0a0837 100644
(file)
--- a/
src/nnn.c
+++ b/
src/nnn.c
@@
-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;
}