aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--edit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/edit.c b/edit.c
index e92c080..2dc1865 100644
--- a/edit.c
+++ b/edit.c
@@ -529,7 +529,8 @@ static void default_completions __P0 (void)
char buf[BUFSIZE];
cmdstruct *p;
int i;
- for (i = 0, buf[0] = '#', p = commands; p->name; p++)
+ /* TODO: add some way to handle new commands going in the default completions list */
+ for (i = 0, buf[0] = '#', p = commands; p != NULL; p = p -> next)
if (p->funct /*&& strlen(p->name) >= 3*/ ) {
if (++i >= MAX_WORDS) break;
strcpy(buf + 1, p->name);