summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-04-15 12:56:46 -0700
committerKevin McCarthy <kevin@8t8.us>2017-04-15 12:56:46 -0700
commit6947816e6239d98aa9f6fc3eb29aad4efc0bdb57 (patch)
treec57f51ecfe5f4df815b0251c5c71df6c938be5fb /curs_lib.c
parentb85e897b7e9d6546787c568bd08628ab3c4d29f3 (diff)
Set pager's REDRAW_SIGWINCH when reflowing windows.
So that all external reflow handling functions don't have to remember to set the flag too.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/curs_lib.c b/curs_lib.c
index 55a6dd3c..efe60e94 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -167,9 +167,6 @@ int _mutt_get_field (const char *field, char *buf, size_t buflen, int complete,
{
SigWinch = 0;
mutt_resize_screen ();
- /* mutt_resize_screen sets REDRAW_FULL, but the pager also
- * requires SIGWINCH. */
- mutt_set_current_menu_redraw (REDRAW_SIGWINCH);
clearok(stdscr, TRUE);
mutt_current_menu_redraw ();
}
@@ -562,6 +559,8 @@ void mutt_reflow_windows (void)
#endif
mutt_set_current_menu_redraw_full ();
+ /* the pager menu needs this flag set to recalc lineInfo */
+ mutt_set_current_menu_redraw (REDRAW_SIGWINCH);
}
static void reflow_message_window_rows (int mw_rows)
@@ -582,6 +581,8 @@ static void reflow_message_window_rows (int mw_rows)
MuttSidebarWindow->rows = MuttIndexWindow->rows;
#endif
+ /* We don't also set REDRAW_SIGWINCH because this function only
+ * changes rows and is a temporary adjustment. */
mutt_set_current_menu_redraw_full ();
}
@@ -905,7 +906,6 @@ int mutt_multi_choice (char *prompt, char *letters)
{
SigWinch = 0;
mutt_resize_screen ();
- mutt_set_current_menu_redraw (REDRAW_SIGWINCH);
clearok (stdscr, TRUE);
mutt_current_menu_redraw ();
}