Commit 27989f48 authored by Kevin J. McCarthy's avatar Kevin J. McCarthy

Add ifdefs around new mutt_resize_screen calls.

Changeset 231fa2eff206 added sigwinch handling to _mutt_enter_string()
but neglected to add an ifdef check.
parent 28eef9b9
......@@ -162,6 +162,7 @@ int _mutt_get_field (const char *field, char *buf, size_t buflen, int complete,
do
{
#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM)
if (SigWinch)
{
SigWinch = 0;
......@@ -172,6 +173,7 @@ int _mutt_get_field (const char *field, char *buf, size_t buflen, int complete,
clearok(stdscr, TRUE);
mutt_current_menu_redraw ();
}
#endif
mutt_window_clearline (MuttMessageWindow, 0);
SETCOLOR (MT_COLOR_PROMPT);
addstr ((char *)field); /* cast to get around bad prototypes */
......
......@@ -218,12 +218,14 @@ int mutt_enter_string(char *buf, size_t buflen, int col, int flags)
ENTER_STATE *es = mutt_new_enter_state ();
do
{
#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM)
if (SigWinch)
{
SigWinch = 0;
mutt_resize_screen ();
clearok(stdscr, TRUE);
}
#endif
rv = _mutt_enter_string (buf, buflen, col, flags, 0, NULL, NULL, es);
}
while (rv == 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment