Skip to content

Commit a8f9852

Browse files
committed
Fix console command completion help, again
1 parent 326475c commit a8f9852

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/Core.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,13 @@ void get_commands(color_ostream &con, std::vector<std::string> &commands) {
453453
con.printerr("Failed Lua call to helpdb.get_commands.\n");
454454
}
455455

456-
Lua::GetVector(L, commands);
456+
Lua::GetVector(L, commands, top + 1);
457457
}
458458

459459
static bool try_autocomplete(color_ostream &con, const std::string &first, std::string &completed)
460460
{
461461
std::vector<std::string> commands, possible;
462-
462+
get_commands(con, commands);
463463
for (auto &command : commands)
464464
if (command.substr(0, first.size()) == first)
465465
possible.push_back(command);

0 commit comments

Comments
 (0)