let the caller deal with M_FORMAT_ARROWCURSOR, not the callee.
[apps/madmutt.git] / compose.c
index 860d643..d1a6098 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -116,7 +116,7 @@ static void snd_entry (char *b, ssize_t blen, MUTTMENU * menu, int num) {
   int w=(COLS-SW)>blen?blen:COLS-SW;
   m_strformat (b, w, NONULL (AttachFormat), mutt_attach_fmt,
                      (unsigned long) (((ATTACHPTR **) menu->data)[num]),
-                     M_FORMAT_STAT_FILE | M_FORMAT_ARROWCURSOR);
+                     M_FORMAT_STAT_FILE | (option(OPTARROWCURSOR) ? M_FORMAT_ARROWCURSOR : 0));
 }
 
 static void redraw_crypt_lines (HEADER * msg)
@@ -461,8 +461,7 @@ static void compose_status_line (char *buf, ssize_t buflen, MUTTMENU * menu,
                                  const char *p)
 {
   int w=(COLS-SW)>buflen?buflen:(COLS-SW);
-  m_strformat (buf, w, p, compose_format_str,
-                     (unsigned long) menu, 0);
+  m_strformat(buf, w, p, compose_format_str, (unsigned long)menu, 0);
 }
 
 /* return values: