summaryrefslogtreecommitdiffstats
path: root/curs_main.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-05 20:25:40 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-05 20:25:40 +0000
commit04a38530367ac964b340b402d7672aea415c32d0 (patch)
tree6b01ce4a4eee4786b96a26c3b067d565e9d937ca /curs_main.c
parent7d17a26a61d921b3cd788da01101dbcf4fecbe92 (diff)
Make exec grok >= 1 parameters; fix double ops problem in
index_menu().
Diffstat (limited to 'curs_main.c')
-rw-r--r--curs_main.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/curs_main.c b/curs_main.c
index 3175c432..0927d375 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -242,7 +242,7 @@ int mutt_index_menu (void)
{
char buf[LONG_STRING], helpstr[SHORT_STRING];
int op = OP_NULL;
- event_t event = {OP_NULL, 0};
+ event_t event = {-1, 0};
int done = 0; /* controls when to exit the "event" loop */
int i = 0, j;
int tag = 0; /* has the tag-prefix command been pressed? */
@@ -477,15 +477,27 @@ 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__,
+ event.ch, event.op));
timeout (-1); /* restore blocking operation */
if (event.ch != -1)
{
+ dprint(1, (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));
+ }
mutt_curs_set (1);