From f422bddfe7468c3f36388a8830c832c01841eabc Mon Sep 17 00:00:00 2001 From: nion Date: Mon, 21 Mar 2005 12:54:41 +0000 Subject: [PATCH] Nico Golde: - moved prototype to header file - removed fixme because it makes no sense outside of sidebar git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@220 e385b8ad-14ed-0310-8656-cc95a2468c6d --- compose.c | 7 ++----- compose.h | 1 + sidebar.c | 3 --- 3 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 compose.h diff --git a/compose.c b/compose.c index 31a72ec..3b02b47 100644 --- a/compose.c +++ b/compose.c @@ -27,6 +27,7 @@ #include "sort.h" #include "charset.h" #include "mx.h" +#include "compose.h" #ifdef MIXMASTER #include "remailer.h" @@ -435,10 +436,6 @@ static unsigned long cum_attachs_size (MUTTMENU * menu) return s; } -/* prototype for use below */ -static void compose_status_line (char *buf, size_t buflen, MUTTMENU * menu, - const char *p); - /* * compose_format_str() * @@ -1404,7 +1401,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ compose_status_line (buf, sizeof (buf), menu, NONULL (ComposeFormat)); CLEARLINE (option (OPTSTATUSONTOP) ? 0 : LINES - 2); SETCOLOR (MT_COLOR_STATUS); - printw ("%-*.*s", COLS, COLS, buf); + printw ("nnn%-*.*s", COLS, COLS, buf); SETCOLOR (MT_COLOR_NORMAL); menu->redraw &= ~REDRAW_STATUS; } diff --git a/compose.h b/compose.h new file mode 100644 index 0000000..aae4557 --- /dev/null +++ b/compose.h @@ -0,0 +1 @@ +static void compose_status_line(char *buf, size_t buflen, MUTTMENU * menu,const char *p); diff --git a/sidebar.c b/sidebar.c index eb0436a..fe7ba89 100644 --- a/sidebar.c +++ b/sidebar.c @@ -60,9 +60,6 @@ void calc_boundaries (int menu) TopBuffy = 0; } -/* compresses hierarchy in folder names; - * FIXME move out to library? - */ static char *shortened_hierarchy (char *box) { int dots = 0; -- 2.20.1