From da532a4a7803a1fd5f71f3b497f9e65a3a1e94e4 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 30 Aug 2005 19:45:24 +0000 Subject: Fixed initializing default completions using new command structures 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); -- cgit v0.10.2