summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--curs_main.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/curs_main.c b/curs_main.c
index 39310447..e4f73156 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -476,27 +476,22 @@ int mutt_index_menu (void)
{
timeout (Timeout * 1000); /* milliseconds */
event = mutt_getch ();
- dprint(1, (debugfile, "mutt_index_menu[%d]: Got event (%d, %d)\n", __LINE__,
+ dprint(4, (debugfile, "mutt_index_menu[%d]: Got event (%d, %d)\n", __LINE__,
event.ch, event.op));
timeout (-1); /* restore blocking operation */
- if (event.ch != -1)
+ op = event.ch;
+ if (op != -1)
{
- dprint(1, (debugfile, "mutt_index_menu[%d]: Pushing event (%d, %d)\n", __LINE__,
+ dprint(4, (debugfile, "mutt_index_menu[%d]: Pushing event (%d, %d)\n", __LINE__,
event.ch, event.op));
mutt_ungetch (event.ch, event.op);
op = km_dokey (MENU_MAIN);
- dprint(1, (debugfile, "mutt_index_menu[%d]: Got op %d\n", __LINE__,
- op));
}
- else
- op = -1;
}
else
- {
op = km_dokey (MENU_MAIN);
- dprint(1, (debugfile, "mutt_index_menu[%d]: Got op %d\n", __LINE__,
- op));
- }
+
+ dprint(4, (debugfile, "mutt_index_menu[%d]: Got op %d\n", __LINE__, op));
mutt_curs_set (1);