mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user