From a277f9aa93f57b912deed473175ef712fe7ee9fe Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 20 Sep 2022 16:49:06 +0200 Subject: [PATCH] WSL: Only skip ".dll" files for *executable* completions This was overzealous and didn't allow anything named ".dll" in any file completions. This allows us to now add the cd completion fast path for WSL --- src/wildcard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }