X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fcurs_main.c;h=fdce20e261297a049455c6b11330a7872728888d;hb=74697a5c38af6a85ce3b0062d781c35814a9f536;hp=1d2be6d8da8ae040b767f720059f6d8f7aae4097;hpb=4a0b020a3048f079979bea43c04f9fe388f9354d;p=apps%2Fmadmutt.git diff --git a/lib-ui/curs_main.c b/lib-ui/curs_main.c index 1d2be6d..fdce20e 100644 --- a/lib-ui/curs_main.c +++ b/lib-ui/curs_main.c @@ -10,14 +10,9 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif +#include -#include -#include -#include -#include +#include #include @@ -25,12 +20,12 @@ #include "menu.h" #include "mutt.h" +#include "alias.h" #include "mx.h" #include "sort.h" #include "recvattach.h" #include "buffy.h" #include "mx.h" -#include "sidebar.h" #include "thread.h" #include "xterm.h" @@ -46,16 +41,6 @@ #include "mutt_sasl.h" #endif -#include "lib/debug.h" - -#include -#include -#include -#include -#include -#include -#include - static const char *No_mailbox_is_open = N_("No mailbox is open."); static const char *There_are_no_messages = N_("There are no messages."); static const char *Mailbox_is_read_only = N_("Mailbox is read-only."); @@ -491,7 +476,7 @@ int mutt_index_menu (void) ("Mailbox was externally modified. Flags may be wrong.")); else if (check == M_NEW_MAIL) { /* on new mail: redraw sidebar */ - sidebar_draw (CurrentMenu); + sidebar_draw (); mutt_message (_("New mail in this mailbox.")); if (option (OPTBEEPNEW)) @@ -531,10 +516,10 @@ int mutt_index_menu (void) if (op != -1) mutt_curs_set (0); if (menu->redraw & REDRAW_SIDEBAR) - sidebar_draw (menu->menu); + sidebar_draw (); if (menu->redraw & REDRAW_FULL) { menu_redraw_full (menu); - sidebar_draw (menu->menu); + sidebar_draw (); mutt_show_error (); } @@ -605,8 +590,6 @@ int mutt_index_menu (void) op = km_dokey (MENU_MAIN); - debug_print (4, ("Got op %d\n", op)); - if (op == -1) continue; /* either user abort or timeout */ @@ -752,7 +735,7 @@ int mutt_index_menu (void) break; } else { - LIST *ref = CURHDR->env->references; + string_list_t *ref = CURHDR->env->references; if (!ref) { mutt_error (_("Article has no parent reference!")); @@ -808,7 +791,7 @@ int mutt_index_menu (void) m_strcpy(buf, sizeof(buf), CURHDR->env->message_id); if (op == OP_RECONSTRUCT_THREAD) { - LIST *ref = CURHDR->env->references; + string_list_t *ref = CURHDR->env->references; while (ref) { nntp_check_msgid (Context, ref->data); @@ -1227,7 +1210,7 @@ int mutt_index_menu (void) if (Context) { int check; - if (Context->compressinfo && Context->realpath) + if (Context->cinfo && Context->realpath) m_strreplace(&LastFolder, Context->realpath); else m_strreplace(&LastFolder, Context->path); @@ -2325,7 +2308,7 @@ int mutt_index_menu (void) case OP_SIDEBAR_PREV: case OP_SIDEBAR_NEXT_NEW: case OP_SIDEBAR_PREV_NEW: - sidebar_scroll (op, menu->menu); + sidebar_scroll (op); break; default: if (menu->menu == MENU_MAIN)