From ec7f881c2e12f702593b326f19f222075427e883 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 4 Oct 2011 16:12:45 -0500 Subject: Ignore commands starting with digit on completion Diff from: Raphael Graf but he wasn't around to commit it. Fixes FS#171 --- xxxterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xxxterm.c b/xxxterm.c index 4f22a24..1b0bc04 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -7952,7 +7952,7 @@ cmd_getlist(int id, char *key) if (cmds[i].level < dep) break; if (cmds[i].level == dep && !strncmp(key, cmds[i].cmd, - strlen(key))) + strlen(key)) && !isdigit(cmds[i].cmd[0])) cmd_status.list[c++] = cmds[i].cmd; } -- cgit 1.4.1-2-gfad0