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:
parent
b17475128d
commit
d6e551c1a5
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user