diff options
Diffstat (limited to 'gui/debugger.cpp')
-rw-r--r-- | gui/debugger.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp index ce4661e9cb..9b559d8bb9 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -404,17 +404,17 @@ void Debugger::splitCommand(char *input, int &argc, const char **argv) { byte c; enum states { DULL, IN_WORD, IN_STRING } state = DULL; const char *paramStart = nullptr; - + argc = 0; for (char *p = input; *p; ++p) { c = (byte)*p; switch (state) { - case DULL: + case DULL: // not in a word, not in a double quoted string if (isspace(c)) break; - + // not a space -- if it's a double quote we go to IN_STRING, else to IN_WORD if (c == '"') { state = IN_STRING; @@ -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; |