Allow resize events while prompting the user

When asking the user to choose between multiple alternatives, properly
handle resize events.

Note that we would also need to do so in getstring()...

Signed-off-by: Baptiste Jonglez <baptiste--git@jonglez.org>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Baptiste Jonglez authored and Lukas Fleischer committed 2012-05-14 19:32:18 +02:00
1 parent b17475128d
commit d6e551c1a5
1 file changed
+6 -1
+6 -1
View File
@@ -222,7 +222,12 @@ status_ask_choice(const char *message, const char choice[], int nb_choice)
return i;
if (ch == ESCAPE)
return (-1);
/* TODO: handle resize events. */
if (resize)
{
resize = 0;
wins_reset ();
status_mesg (message, avail_choice);
}
}
}