summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-04-15 12:56:42 -0700
committerKevin McCarthy <kevin@8t8.us>2017-04-15 12:56:42 -0700
commit27989f48f1215ec27505c3fa46530478ebd20255 (patch)
tree78fa8e85709c007cd14d6498aa0a895cd2f497eb /curs_lib.c
parent28eef9b9e3932b1b1f942d73076e90d3ed44305b (diff)
Add ifdefs around new mutt_resize_screen calls.
Changeset 231fa2eff206 added sigwinch handling to _mutt_enter_string() but neglected to add an ifdef check.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/curs_lib.c b/curs_lib.c
index 01ad8ec5..26285064 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 */