From: Kevin McCarthy Date: Tue, 9 May 2017 23:07:42 +0000 (-0700) Subject: Rename REDRAW_SIGWINCH to REDRAW_FLOW. X-Git-Tag: mutt-1-9-rel~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71b52d48992d43289653f5b184bf2434e7058dfc;p=mutt Rename REDRAW_SIGWINCH to REDRAW_FLOW. The next patch will attach this redraw flag to pager settings. The former name becomes somewhat confusing with the expanded usage, so rename it to something more relevant to what is being redrawn. --- diff --git a/curs_lib.c b/curs_lib.c index 2e3400e8..1a2bb9e9 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -608,7 +608,7 @@ void mutt_reflow_windows (void) mutt_set_current_menu_redraw_full (); /* the pager menu needs this flag set to recalc lineInfo */ - mutt_set_current_menu_redraw (REDRAW_SIGWINCH); + mutt_set_current_menu_redraw (REDRAW_FLOW); } static void reflow_message_window_rows (int mw_rows) @@ -629,7 +629,7 @@ 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 + /* We don't also set REDRAW_FLOW because this function only * changes rows and is a temporary adjustment. */ mutt_set_current_menu_redraw_full (); } diff --git a/mutt_menu.h b/mutt_menu.h index e39c3ea0..32754dc7 100644 --- a/mutt_menu.h +++ b/mutt_menu.h @@ -34,7 +34,7 @@ #define REDRAW_STATUS (1<<4) #define REDRAW_FULL (1<<5) #define REDRAW_BODY (1<<6) -#define REDRAW_SIGWINCH (1<<7) +#define REDRAW_FLOW (1<<7) /* Used by pager to reflow text */ #ifdef USE_SIDEBAR #define REDRAW_SIDEBAR (1<<8) #endif diff --git a/pager.c b/pager.c index baabeffb..7c322eee 100644 --- a/pager.c +++ b/pager.c @@ -1703,7 +1703,7 @@ static void pager_menu_redraw (MUTTMENU *pager_menu) rd->SearchBack = Resize->SearchBack; } rd->lines = Resize->line; - pager_menu->redraw |= REDRAW_SIGWINCH; + pager_menu->redraw |= REDRAW_FLOW; FREE (&Resize); } @@ -1745,7 +1745,7 @@ static void pager_menu_redraw (MUTTMENU *pager_menu) mutt_show_error (); } - if (pager_menu->redraw & REDRAW_SIGWINCH) + if (pager_menu->redraw & REDRAW_FLOW) { if (!(rd->flags & MUTT_PAGER_RETWINCH)) { @@ -2045,7 +2045,7 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) else { /* note: mutt_resize_screen() -> mutt_reflow_windows() sets - * REDRAW_FULL and REDRAW_SIGWINCH */ + * REDRAW_FULL and REDRAW_FLOW */ ch = 0; } continue;