diff options
author | Kevin McCarthy <kevin@8t8.us> | 2017-04-05 16:09:33 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2017-04-05 16:09:33 -0700 |
commit | d8d3088fb8c71324e6501033144731e233586dd6 (patch) | |
tree | bef554917813cebe3cc4df65f1fc94aa054a43e2 /curs_lib.c | |
parent | 1a8f960cc2b4d77c40021c7f181964d5c261d5b7 (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.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); } |