diff --git a/src/autoload.cpp b/src/autoload.cpp index 8550dae1b..8e063c7a1 100644 --- a/src/autoload.cpp +++ b/src/autoload.cpp @@ -253,7 +253,7 @@ bool autoload_t::locate_file_and_maybe_load_it(const wcstring &cmd, bool really_ if (really_load) { this->insert(cmd, autoload_function_t(true)); } else { - this->insert(cmd, autoload_function_t(true)); + this->insert_no_eviction(cmd, autoload_function_t(true)); } func = this->get(cmd); assert(func);