aboutsummaryrefslogtreecommitdiffstats
path: root/edit.c
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2005-08-30 19:45:24 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2005-08-30 19:45:24 (GMT)
commitda532a4a7803a1fd5f71f3b497f9e65a3a1e94e4 (patch)
tree01ab21dd59687323e441b38fa71c294b08efd7cf /edit.c
parent60e7d82f1f9baa93b88a24dbb20662da466c99ed (diff)
downloadpowwow-da532a4a7803a1fd5f71f3b497f9e65a3a1e94e4.zip
powwow-da532a4a7803a1fd5f71f3b497f9e65a3a1e94e4.tar.gz
powwow-da532a4a7803a1fd5f71f3b497f9e65a3a1e94e4.tar.bz2
Fixed initializing default completions using new command structures
Diffstat (limited to 'edit.c')
-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);