From: Kevin McCarthy Date: Sat, 15 Apr 2017 19:56:42 +0000 (-0700) Subject: Add ifdefs around new mutt_resize_screen calls. X-Git-Tag: neomutt-20170421~2^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bde2407786df127909cf5024079e5e4115525595;p=neomutt Add ifdefs around new mutt_resize_screen calls. Changeset 231fa2eff206 added sigwinch handling to _mutt_enter_string() but neglected to add an ifdef check. --- diff --git a/curs_lib.c b/curs_lib.c index 01ad8ec57..262850649 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -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 */ diff --git a/enter.c b/enter.c index 761b38d9c..fd012812a 100644 --- a/enter.c +++ b/enter.c @@ -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);