summaryrefslogtreecommitdiffstats
path: root/src/bftw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bftw.c')
-rw-r--r--src/bftw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bftw.c b/src/bftw.c
index 902a3fa..c58001d 100644
--- a/src/bftw.c
+++ b/src/bftw.c
@@ -862,7 +862,7 @@ static bool bftw_pop_dir(struct bftw_state *state) {
if (state->flags & BFTW_SORT) {
// Keep strict breadth-first order when sorting
- if (state->strategy != BFTW_DFS && have_files) {
+ if (state->strategy == BFTW_BFS && have_files) {
return false;
}
} else {