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 2012-05-14 12:38:23 +02:00 committed by Lukas Fleischer
parent b17475128d
commit d6e551c1a5

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);
}
}
}