diff --git a/library/Core.cpp b/library/Core.cpp index c78cf372b2..48cbaabcdc 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -459,7 +459,7 @@ void get_commands(color_ostream &con, std::vector &commands) { static bool try_autocomplete(color_ostream &con, const std::string &first, std::string &completed) { std::vector commands, possible; - get_commands(con, commands); + for (auto &command : commands) if (command.substr(0, first.size()) == first) possible.push_back(command);