From 71048aed9229f06d00a5e00779436969e6e377e5 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 9 May 2017 16:07:42 -0700 Subject: [PATCH] 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. --- curs_lib.c | 4 ++-- mutt_menu.h | 2 +- pager.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/curs_lib.c b/curs_lib.c index 2e3400e8f..1a2bb9e9c 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 e39c3ea01..32754dc73 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 baabeffb3..7c322eeee 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; -- 2.40.0