=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/help.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/usr.bin/mg/help.c 2001/05/23 21:47:33 1.8 +++ src/usr.bin/mg/help.c 2001/05/23 22:12:10 1.9 @@ -1,4 +1,4 @@ -/* $OpenBSD: help.c,v 1.8 2001/05/23 21:47:33 art Exp $ */ +/* $OpenBSD: help.c,v 1.9 2001/05/23 22:12:10 art Exp $ */ /* * Help functions for Mg 2 @@ -115,7 +115,7 @@ return FALSE; } if ((addline(bp, "Global bindings:") == FALSE) || - (showall(bp, map_table[0].p_map, "") == FALSE)) + (showall(bp, fundamental_map, "") == FALSE)) return FALSE; return popbuftop(bp); } @@ -190,11 +190,12 @@ fnames = complete_function_list("", NULL); for (el = fnames; el != NULL; el = el->l_next) { char buf[32]; + if (strstr(el->l_name, string) == NULL) continue; + buf[0] = '\0'; - findbind(name_map("fundamental"), - name_function(el->l_name), buf); + findbind(fundamental_map, name_function(el->l_name), buf); if (addlinef(bp, "%-32s%s", el->l_name, buf) == FALSE) { free_file_list(fnames);