summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-06-01 15:17:01 -0700
committerKevin McCarthy <kevin@8t8.us>2017-06-01 15:17:01 -0700
commit054164bf31c1c304684e6a9595823612b2c903bf (patch)
treec3ee62a9b4455745c305a2303a7547e643df53d2 /menu.c
parent5f93694fadbb9ff38cf81d60f71f089b00d1a8af (diff)
Change km_dokey() to return -2 on a timeout/sigwinch.
In some cases, such as tag-prefix or _mutt_enter_string(), it is desirable to be able to distinguish between a timeout/sigwinch event and an input error/abort/ctrl-g.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 5a166f2b..0e09c780 100644
--- a/menu.c
+++ b/menu.c
@@ -1045,7 +1045,7 @@ int mutt_menuLoop (MUTTMENU *menu)
}
#endif
- if (i == -1)
+ if (i < 0)
continue;
if (!menu->dialog)