From 0204277b2bed6792b3563e97a18356b51fb195a8 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 443840ae8c..9aa015ca6e 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);