Don't tab complete null
Jeffrey Pfau jeffrey@endrift.com
Fri, 10 Oct 2014 03:22:44 -0700
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/debugger/cli-debugger.c
→
src/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;