diff --git a/src/complete.cpp b/src/complete.cpp index f0c546323..8aaceec91 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -1451,10 +1451,6 @@ void complete(const wcstring &cmd_with_subcmds, std::vector *out_c } } - // If we have found no command specific completions at all, fall back to using - // file completions. - if (completer.empty()) do_file = true; - // Hack. If we're cd, handle it specially (issue #1059, others). handle_as_special_cd = (current_command_unescape == L"cd");