diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2005-08-30 19:45:24 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2005-08-30 19:45:24 (GMT) |
commit | da532a4a7803a1fd5f71f3b497f9e65a3a1e94e4 (patch) | |
tree | 01ab21dd59687323e441b38fa71c294b08efd7cf | |
parent | 60e7d82f1f9baa93b88a24dbb20662da466c99ed (diff) | |
download | powwow-da532a4a7803a1fd5f71f3b497f9e65a3a1e94e4.zip powwow-da532a4a7803a1fd5f71f3b497f9e65a3a1e94e4.tar.gz powwow-da532a4a7803a1fd5f71f3b497f9e65a3a1e94e4.tar.bz2 |
Fixed initializing default completions using new command structures
-rw-r--r-- | edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |