From 04630f3c639e6c35c0fea6c067a39ac379d5250e Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Thu, 5 Dec 2024 21:04:34 -0600 Subject: [PATCH] revert #5080, reinstating try_autocomplete --- library/Core.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);