aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorBastien Bouclet2018-04-27 19:34:34 +0200
committerBastien Bouclet2018-04-30 20:31:44 +0200
commit7382af32be416e99afe077e822c13535a258c12a (patch)
tree132773d47f715aa7430b70c88a19cd1994d2c6eb /gui
parent0e9dc861506ac3d89467c34b18b5cd11df63eb53 (diff)
downloadscummvm-rg350-7382af32be416e99afe077e822c13535a258c12a.tar.gz
scummvm-rg350-7382af32be416e99afe077e822c13535a258c12a.tar.bz2
scummvm-rg350-7382af32be416e99afe077e822c13535a258c12a.zip
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.
Diffstat (limited to 'gui')
-rw-r--r--gui/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index ce4661e9cb..fb03b57892 100644
--- a/gui/debugger.cpp
+++ b/gui/debugger.cpp
@@ -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;