mirror of https://github.com/mgba-emu/mgba.git
Fix tab-completing past the end of the completions list
This commit is contained in:
parent
0b736c9cc8
commit
ef6e1f9e74
|
@ -597,6 +597,9 @@ static unsigned char _tabComplete(EditLine* elstate, int ch) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!name) {
|
||||
return CC_ERROR;
|
||||
}
|
||||
if (_debuggerCommands[cmd + 1].name && strncasecmp(_debuggerCommands[cmd + 1].name, li->buffer, len - 1) == 0) {
|
||||
return CC_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue