]> granicus.if.org Git - neomutt/commitdiff
Modify the built-in editor to use windows.
authorKevin McCarthy <kevin@8t8.us>
Thu, 28 Apr 2016 00:56:56 +0000 (17:56 -0700)
committerKevin McCarthy <kevin@8t8.us>
Thu, 28 Apr 2016 00:56:56 +0000 (17:56 -0700)
This only involved changing to use the MuttMessageWindow.

edit.c

diff --git a/edit.c b/edit.c
index df58111d6ce60b87c2ad98bc99722ec3336281f5..00d8afb613374c8dcb8ec91313a8526f14b16161 100644 (file)
--- a/edit.c
+++ b/edit.c
@@ -234,7 +234,7 @@ static void be_edit_header (ENVELOPE *e, int force)
 {
   char tmp[HUGE_STRING];
 
-  move (LINES-1, 0);
+  mutt_window_move (MuttMessageWindow, 0, 0);
 
   addstr ("To: ");
   tmp[0] = 0;
@@ -250,7 +250,7 @@ static void be_edit_header (ENVELOPE *e, int force)
       mutt_addrlist_to_intl (e->to, NULL);     /* XXX - IDNA error reporting? */
       tmp[0] = 0;
       rfc822_write_address (tmp, sizeof (tmp), e->to, 1);
-      mvaddstr (LINES - 1, 4, tmp);
+      mutt_window_mvaddstr (MuttMessageWindow, 0, 4, tmp);
     }
   }
   else
@@ -283,7 +283,7 @@ static void be_edit_header (ENVELOPE *e, int force)
       tmp[0] = 0;
       mutt_addrlist_to_intl (e->cc, NULL);
       rfc822_write_address (tmp, sizeof (tmp), e->cc, 1);
-      mvaddstr (LINES - 1, 4, tmp);
+      mutt_window_mvaddstr (MuttMessageWindow, 0, 4, tmp);
     }
     else
       mutt_addrlist_to_intl (e->cc, NULL);
@@ -304,7 +304,7 @@ static void be_edit_header (ENVELOPE *e, int force)
       mutt_addrlist_to_intl (e->bcc, NULL);
       tmp[0] = 0;
       rfc822_write_address (tmp, sizeof (tmp), e->bcc, 1);
-      mvaddstr (LINES - 1, 5, tmp);
+      mutt_window_mvaddstr (MuttMessageWindow, 0, 5, tmp);
     }
     else
       mutt_addrlist_to_intl (e->bcc, NULL);