From 77a8742237408bf605fdfce51ec169b51fe7083a Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sat, 15 Apr 2017 12:56:42 -0700 Subject: [PATCH] Add ifdefs around new mutt_resize_screen calls. Changeset 231fa2eff206 added sigwinch handling to _mutt_enter_string() but neglected to add an ifdef check. --- curs_lib.c | 2 ++ enter.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/curs_lib.c b/curs_lib.c index 05a2cfed5..0ac4e7a23 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 a63da70cf..fb5acd056 100644 --- a/enter.c +++ b/enter.c @@ -215,12 +215,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); mutt_free_enter_state(&es); -- 2.49.0