mirror of
https://github.com/scummvm/scummvm.git
synced 2026-11-18 21:34:48 +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 parent
7e2395ff94
commit
f8f6d34f6a
3 files changed
+42
-1
No files matched your search
+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