diff --git a/library/Core.cpp b/library/Core.cpp index 7349d1a548..60969c8a51 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -467,9 +467,7 @@ static bool try_autocomplete(color_ostream &con, const std::string &first, std:: { std::vector commands, possible; - // restore call to get_commands once we have updated the core lock to a deferred lock - // so calling Lua from the console thread won't deadlock if Lua is currently busy - //get_commands(con, commands); + get_commands(con, commands); for (auto &command : commands) if (command.substr(0, first.size()) == first) possible.push_back(command);