GUI: Make the tab completion case insensitive in the debug console

It made little sense for the tab-completion to be case sensitive while
command execution itself is case insensitive.
This commit is contained in:
Bastien Bouclet
2018-06-10 16:24:30 +02:00
parent 7e2395ff94
commit f8f6d34f6a
3 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -470,7 +470,7 @@ bool Debugger::tabComplete(const char *input, Common::String &completion) const
CommandsMap::const_iterator i, e = _cmds.end();
for (i = _cmds.begin(); i != e; ++i) {
if (i->_key.hasPrefix(input)) {
if (i->_key.hasPrefixIgnoreCase(input)) {
uint commandlen = i->_key.size();
if (commandlen == inputlen) { // perfect match, so no tab completion possible
return false;