diff --git a/src/complete.cpp b/src/complete.cpp index 4c1577783..06daaa1b5 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -881,10 +881,6 @@ void completer_t::complete_cmd(const wcstring &str_cmd, bool use_function, bool std::vector possible_comp; - env_var_t cdpath = this->vars.get(L"CDPATH"); - if (cdpath.missing_or_empty()) - cdpath = L"."; - if (use_command) {