summaryrefslogtreecommitdiff
path: root/mh/mh.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2017-06-08 22:10:16 +0300
committerSergey Poznyakoff <gray@gnu.org>2017-06-08 22:16:15 +0300
commit766dd82f18c41f4fbf403e6627cb9a37a8b8a69f (patch)
tree00a1fdebf6b094e07449c7c84ee1361614c55fbf /mh/mh.h
parente7a22c4230d150f591b25ac13350da494d1da4b3 (diff)
downloadmailutils-766dd82f18c41f4fbf403e6627cb9a37a8b8a69f.tar.gz
mailutils-766dd82f18c41f4fbf403e6627cb9a37a8b8a69f.tar.bz2
Re-use last invoked editor in MH whatnow
This fixes a bug introduced in d30e5a07 * mh/mh.h (mh_whatnow_env) <last_ed>: New member * mh/mh_whatnow.c (_whatnow): Initialize reedit and last_ed members Free last_ed before returning (edit): Prefer wh->last_ed over wh->editor
Diffstat (limited to 'mh/mh.h')
-rw-r--r--mh/mh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mh/mh.h b/mh/mh.h
index 9190ae919..c15f8569f 100644
--- a/mh/mh.h
+++ b/mh/mh.h
@@ -210,13 +210,14 @@ struct mh_whatnow_env /* whatnow shell environment */
char *file; /* The file being processed */
char *msg; /* File name of the original message (if any) */
char *draftfile; /* File to preserve the draft into */
- const char *editor;
+ const char *editor; /* Default editor */
char *prompt;
char *anno_field; /* Annotate field to be used */
mu_list_t anno_list; /* List of messages (mu_message_t) to annotate */
mu_mailbox_t mbox;
int nowhatnowproc;
int reedit:1; /* Set if the editor was already invoked */
+ char *last_ed; /* Last used editor */
};
#define DISP_QUIT 0

Return to:

Send suggestions and report system problems to the System administrator.