diff options
author | Kevin McCarthy <kevin@8t8.us> | 2016-04-27 17:56:53 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2016-04-27 17:56:53 -0700 |
commit | f9410a0573c6e1ec0719970f711a8bac49ccb4ea (patch) | |
tree | 2a117dc46733f343a08870f09040dea672f809c5 /edit.c | |
parent | fc903027c9b88d4bbaa09f352946970ca51b850e (diff) |
Modify enter.c routines to use windows.
This modifies the mutt_enter_string() functions to use MuttMessageWindow.
Thanks to Richard Russon for pointing out slang doesn't support getcurx.
Diffstat (limited to 'edit.c')
-rw-r--r-- | edit.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -242,7 +242,7 @@ static void be_edit_header (ENVELOPE *e, int force) rfc822_write_address (tmp, sizeof (tmp), e->to, 0); if (!e->to || force) { - if (mutt_enter_string (tmp, sizeof (tmp), LINES-1, 4, 0) == 0) + if (mutt_enter_string (tmp, sizeof (tmp), 4, 0) == 0) { rfc822_free_address (&e->to); e->to = mutt_parse_adrlist (e->to, tmp); @@ -264,7 +264,7 @@ static void be_edit_header (ENVELOPE *e, int force) { addstr ("Subject: "); strfcpy (tmp, e->subject ? e->subject: "", sizeof (tmp)); - if (mutt_enter_string (tmp, sizeof (tmp), LINES-1, 9, 0) == 0) + if (mutt_enter_string (tmp, sizeof (tmp), 9, 0) == 0) mutt_str_replace (&e->subject, tmp); addch ('\n'); } @@ -275,7 +275,7 @@ static void be_edit_header (ENVELOPE *e, int force) tmp[0] = 0; mutt_addrlist_to_local (e->cc); rfc822_write_address (tmp, sizeof (tmp), e->cc, 0); - if (mutt_enter_string (tmp, sizeof (tmp), LINES-1, 4, 0) == 0) + if (mutt_enter_string (tmp, sizeof (tmp), 4, 0) == 0) { rfc822_free_address (&e->cc); e->cc = mutt_parse_adrlist (e->cc, tmp); @@ -296,7 +296,7 @@ static void be_edit_header (ENVELOPE *e, int force) tmp[0] = 0; mutt_addrlist_to_local (e->bcc); rfc822_write_address (tmp, sizeof (tmp), e->bcc, 0); - if (mutt_enter_string (tmp, sizeof (tmp), LINES-1, 5, 0) == 0) + if (mutt_enter_string (tmp, sizeof (tmp), 5, 0) == 0) { rfc822_free_address (&e->bcc); e->bcc = mutt_parse_adrlist (e->bcc, tmp); @@ -333,7 +333,7 @@ int mutt_builtin_editor (const char *path, HEADER *msg, HEADER *cur) tmp[0] = 0; while (!done) { - if (mutt_enter_string (tmp, sizeof (tmp), LINES-1, 0, 0) == -1) + if (mutt_enter_string (tmp, sizeof (tmp), 0, 0) == -1) { tmp[0] = 0; continue; |