summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-04-05 16:09:33 -0700
committerKevin McCarthy <kevin@8t8.us>2017-04-05 16:09:33 -0700
commitd8d3088fb8c71324e6501033144731e233586dd6 (patch)
treebef554917813cebe3cc4df65f1fc94aa054a43e2 /curs_lib.c
parent1a8f960cc2b4d77c40021c7f181964d5c261d5b7 (diff)
Change km_dokey() to pass SigWinch on for the MENU_EDITOR. (see #3877)
Change _mutt_enter_string() to pass the SigWinch through for _mutt_get_field() or mutt_enter_string() to handle. Add a call to mutt_current_menu() in _mutt_get_field() to properly redisplay the screen in that case.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/curs_lib.c b/curs_lib.c
index 04137574..3600ed82 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -162,6 +162,13 @@ int _mutt_get_field (const char *field, char *buf, size_t buflen, int complete,
do
{
+ if (SigWinch)
+ {
+ SigWinch = 0;
+ mutt_resize_screen ();
+ clearok(stdscr, TRUE);
+ mutt_current_menu_redraw ();
+ }
mutt_window_clearline (MuttMessageWindow, 0);
SETCOLOR (MT_COLOR_PROMPT);
addstr ((char *)field); /* cast to get around bad prototypes */
@@ -173,7 +180,7 @@ int _mutt_get_field (const char *field, char *buf, size_t buflen, int complete,
while (ret == 1);
mutt_window_clearline (MuttMessageWindow, 0);
mutt_free_enter_state (&es);
-
+
return (ret);
}