Don't tab complete null

This commit is contained in:
Jeffrey Pfau 2014-10-10 03:22:44 -07:00
parent ef6e1f9e74
commit ab904f2cfd
1 changed files with 4 additions and 0 deletions

View File

@ -583,6 +583,10 @@ static void _reportEntry(struct ARMDebugger* debugger, enum DebuggerEntryReason
static unsigned char _tabComplete(EditLine* elstate, int ch) {
UNUSED(ch);
const LineInfo* li = el_line(elstate);
if (!li->buffer[0]) {
return CC_ERROR;
}
const char* commandPtr;
int cmd = 0, len = 0;
const char* name = 0;