diff --git a/src/wildcard.cpp b/src/wildcard.cpp index 61d20f4fe..2c957b67c 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -474,7 +474,7 @@ static bool wildcard_test_flags_then_complete(const wcstring &filepath, const wc return false; } - if (is_windows_subsystem_for_linux() && + if (executables_only && is_windows_subsystem_for_linux() && string_suffixes_string_case_insensitive(L".dll", filename)) { return false; }