all repos — mgba @ ef6e1f9e7493042a90026f0865b9f8574d235387

mGBA Game Boy Advance Emulator

Fix tab-completing past the end of the completions list
Jeffrey Pfau jeffrey@endrift.com
Fri, 10 Oct 2014 02:56:13 -0700
commit

ef6e1f9e7493042a90026f0865b9f8574d235387

parent

0b736c9cc8a6eb4028e92447d489e2b0a805cca7

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/debugger/cli-debugger.csrc/debugger/cli-debugger.c

@@ -597,6 +597,9 @@ break;

} } } + if (!name) { + return CC_ERROR; + } if (_debuggerCommands[cmd + 1].name && strncasecmp(_debuggerCommands[cmd + 1].name, li->buffer, len - 1) == 0) { return CC_ERROR; }