about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-10-04 16:12:45 -0500
committerMarco Peereboom <marco@conformal.com>2011-10-04 16:12:45 -0500
commitec7f881c2e12f702593b326f19f222075427e883 (patch)
treeadad7c9052e9a5e3959826583c7dbae889b4b23a
parent899b8a1f96e70c558d204c6610e8bdd706c11aa8 (diff)
downloadxombrero-ec7f881c2e12f702593b326f19f222075427e883.tar.gz
Ignore commands starting with digit on completion
Diff from: Raphael Graf <r@undefined.ch> but he wasn't around to commit
it.  Fixes FS#171
-rw-r--r--xxxterm.c2
1 files changed, 1 insertions, 1 deletions
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;
 
 	}