X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fmenu.c;h=6917d94c9801db2c782bc57a15e047ffadf9a2aa;hp=873579eb77cbd20811a0f2c708c8b0f6ef2aa97e;hb=e1ecc56f86ef4ab94521d444c936c384392a526f;hpb=f667a765e089dbfbc2d7634e238ff2a4b3353068 diff --git a/lib-ui/menu.c b/lib-ui/menu.c index 873579e..6917d94 100644 --- a/lib-ui/menu.c +++ b/lib-ui/menu.c @@ -9,14 +9,12 @@ #include -#include "enter.h" #include "menu.h" #include "mutt.h" #include "charset.h" #include -#include extern size_t UngetCount; @@ -494,7 +492,7 @@ static int menu_search_generic (MUTTMENU * m, regex_t * re, int n) char buf[LONG_STRING]; menu_make_entry (buf, sizeof (buf), m, n); - return (regexec (re, buf, 0, NULL, 0)); + return regexec (re, buf, 0, NULL, 0); } MUTTMENU *mutt_new_menu (void) @@ -508,7 +506,7 @@ MUTTMENU *mutt_new_menu (void) p->pagelen = LINES - 3; p->color = default_color; p->search = menu_search_generic; - return (p); + return p; } void mutt_menuDestroy (MUTTMENU ** p) @@ -542,7 +540,7 @@ static int menu_search (MUTTMENU * menu, int op) if (mutt_get_field ((op == OP_SEARCH) ? _("Search for: ") : _("Reverse search for: "), buf, sizeof (buf), M_CLEAR) != 0 || !buf[0]) - return (-1); + return -1; m_strreplace(&menu->searchBuf, buf); menu->searchDir = (op == OP_SEARCH) ? M_SEARCH_DOWN : M_SEARCH_UP; } @@ -550,7 +548,7 @@ static int menu_search (MUTTMENU * menu, int op) if (!menu->searchBuf) { mutt_error _("No search pattern."); - return (-1); + return -1; } } @@ -564,7 +562,7 @@ static int menu_search (MUTTMENU * menu, int op) regerror (r, &re, buf, sizeof (buf)); regfree (&re); mutt_error ("%s", buf); - return (-1); + return -1; } r = menu->current + searchDir; @@ -580,7 +578,7 @@ static int menu_search (MUTTMENU * menu, int op) regfree (&re); mutt_error _("Not found."); - return (-1); + return -1; } static int menu_dialog_translate_op (int i) @@ -631,7 +629,7 @@ int menu_redraw (MUTTMENU * menu) if (menu->redraw & REDRAW_FULL) { menu_redraw_full (menu); /* allow the caller to do any local configuration */ - return (OP_REDRAW); + return OP_REDRAW; } if (!menu->dialog) @@ -838,10 +836,6 @@ int mutt_menuLoop (MUTTMENU * menu) MAYBE_REDRAW (menu->redraw); break; - case OP_WHAT_KEY: - mutt_what_key (); - break; - case OP_REDRAW: clearok (main_w, TRUE); menu->redraw = REDRAW_FULL; @@ -860,7 +854,7 @@ int mutt_menuLoop (MUTTMENU * menu) break; default: - return (i); + return i; } } /* not reached */