all repos — mgba @ ab904f2cfdfb3829af402dbd557e216e035aac84

mGBA Game Boy Advance Emulator

Don't tab complete null
Jeffrey Pfau jeffrey@endrift.com
Fri, 10 Oct 2014 03:22:44 -0700
commit

ab904f2cfdfb3829af402dbd557e216e035aac84

parent

ef6e1f9e7493042a90026f0865b9f8574d235387

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

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

@@ -583,6 +583,10 @@

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;