Skip to content

Commit

Permalink
revert #5080, reinstating try_autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
ab9rf committed Dec 6, 2024
1 parent 04273dc commit 04630f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,7 @@ static bool try_autocomplete(color_ostream &con, const std::string &first, std::
{
std::vector<std::string> 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);
Expand Down

0 comments on commit 04630f3

Please sign in to comment.