summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorBaptiste Jonglez <baptiste--git@jonglez.org>2012-05-14 12:38:23 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-05-14 19:32:18 +0200
commitd6e551c1a528233bf60c056642a4a5e20f199dfa (patch)
tree5c9780f20f526ca762c3c6ea9f7bace83cd0f9ea /src/utils.c
parentb17475128de9c548fb2727256817345aa1f9273a (diff)
downloadcalcurse-d6e551c1a528233bf60c056642a4a5e20f199dfa.zip
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>
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 1d27bce..d9f3737 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -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);
+ }
}
}