summaryrefslogtreecommitdiffstats
path: root/flags.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-05 18:24:42 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-05 18:24:42 +0000
commitf9fb45338e02ec7171f58b91ba89554f3ea57098 (patch)
treedeac7277476c9626dca43c485d6458574a2b674e /flags.c
parentee4d0e3176cd0cb6778ce9fbd4ce2b7d8123fe2e (diff)
Vikas' macro_function patch.
Diffstat (limited to 'flags.c')
-rw-r--r--flags.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/flags.c b/flags.c
index 02496ce4..b53f2c18 100644
--- a/flags.c
+++ b/flags.c
@@ -250,12 +250,14 @@ int mutt_thread_set_flag (HEADER *cur, int flag, int bf, int subthread)
int mutt_change_flag (HEADER *h, int bf)
{
int i, flag;
+ event_t event;
- mvprintw (LINES - 1, 0, "? (D/N/O/r/*/!): ", bf ? _("Set %s flag") :
- _("Clear %s flag"));
+ mvprintw (LINES - 1, 0, "%s flag? (D/N/O/r/*/!): ", bf ? _("Set") : _("Clear"));
clrtoeol ();
- if ((i = mutt_getch ()) == ERR)
+ event = mutt_getch();
+ i = event.ch;
+ if (i == -1)
{
CLEARLINE (LINES-1);
return (-1);