Nico Golde:
authornion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 21 Mar 2005 12:54:41 +0000 (12:54 +0000)
committernion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 21 Mar 2005 12:54:41 +0000 (12:54 +0000)
- 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
compose.h [new file with mode: 0644]
sidebar.c

index 31a72ec..3b02b47 100644 (file)
--- 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 (file)
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);
index eb0436a..fe7ba89 100644 (file)
--- 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;