diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-29 11:11:53 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-29 11:11:53 +0000 |
commit | 3d0db41ece720d0e5abae914533e2a2f146b5700 (patch) | |
tree | 35e09c4545d5fed1ff0c10e2dda393cc15b0fa55 /addrbook.c | |
parent | 61811193b3bc96b70f1ad68c143387bb290d7ca9 (diff) |
Add generic menu searching.
Diffstat (limited to 'addrbook.c')
-rw-r--r-- | addrbook.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -67,17 +67,6 @@ alias_format_str (char *dest, size_t destlen, char op, const char *src, return (src); } -int alias_search (MUTTMENU *m, regex_t *re, int n) -{ - char s[LONG_STRING]; - int slen = sizeof(s); - - mutt_FormatString (s, slen, NONULL (AliasFmt), alias_format_str, - (unsigned long) ((ALIAS **) m->data)[n], 0); - return regexec (re, s, 0, NULL, 0); -} - - void alias_entry (char *s, size_t slen, MUTTMENU *m, int num) { mutt_FormatString (s, slen, NONULL (AliasFmt), alias_format_str, (unsigned long) ((ALIAS **) m->data)[num], M_FORMAT_ARROWCURSOR); @@ -137,7 +126,6 @@ void mutt_alias_menu (char *buf, size_t buflen, ALIAS *aliases) menu = mutt_new_menu (); menu->make_entry = alias_entry; - menu->search = alias_search; menu->tag = alias_tag; menu->menu = MENU_ALIAS; menu->title = _("Aliases"); |