diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-23 22:12:11 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-23 22:12:11 +0000 |
commit | dedc2917e1594f44221d8474a7317eca1669caf8 (patch) | |
tree | 14ef3b2b4fdfa17825a56dc0dd126dc8d68d1922 /usr.bin/mg/help.c | |
parent | 55cb41cc67afe86ebb2a14cdc709095fb92aa625 (diff) |
Use 'fundamental_map' where 'map_table[0].p_map' or 'name_map("fundamental")'
were used.
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r-- | usr.bin/mg/help.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c index 301c2933556..cd4a15fb80e 100644 --- a/usr.bin/mg/help.c +++ b/usr.bin/mg/help.c @@ -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 @@ wallchart(f, n) 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 @@ apropos_command(f, n) 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); |