summaryrefslogtreecommitdiffstats
path: root/commands.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 /commands.c
parentee4d0e3176cd0cb6778ce9fbd4ce2b7d8123fe2e (diff)
Vikas' macro_function patch.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands.c b/commands.c
index bfaecf8f..c32539fb 100644
--- a/commands.c
+++ b/commands.c
@@ -221,7 +221,7 @@ int mutt_display_message (HEADER *cur)
mutt_set_flag (Context, cur, M_READ, 1);
if (option (OPTPROMPTAFTER))
{
- mutt_ungetch (mutt_any_key_to_continue _("Command: "));
+ mutt_ungetch (mutt_any_key_to_continue _("Command: "), 0);
rc = km_dokey (MENU_PAGER);
}
else
@@ -393,7 +393,7 @@ int mutt_pipe_message (HEADER *h)
int mutt_select_sort (int reverse)
{
int method = Sort; /* save the current method in case of abort */
- int ch;
+ event_t ch;
Sort = 0;
while (!Sort)
@@ -403,13 +403,13 @@ int mutt_select_sort (int reverse)
_("Rev-Sort (d)ate/(f)rm/(r)ecv/(s)ubj/t(o)/(t)hread/(u)nsort/si(z)e/s(c)ore?: ") :
_("Sort (d)ate/(f)rm/(r)ecv/(s)ubj/t(o)/(t)hread/(u)nsort/si(z)e/s(c)ore?: "));
ch = mutt_getch ();
- if (ch == ERR || CI_is_return (ch))
+ if (ch.ch == -1 || CI_is_return (ch.ch))
{
Sort = method;
CLEARLINE (LINES-1);
return (-1);
}
- switch (ch)
+ switch (ch.ch)
{
case 'c':
Sort = SORT_SCORE;