]> granicus.if.org Git - mutt/commitdiff
Rename REDRAW_SIGWINCH to REDRAW_FLOW.
authorKevin McCarthy <kevin@8t8.us>
Tue, 9 May 2017 23:07:42 +0000 (16:07 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 9 May 2017 23:07:42 +0000 (16:07 -0700)
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
mutt_menu.h
pager.c

index 2e3400e8fad785cf6233fec7246c402dcfb21bf4..1a2bb9e9c0f8a3789056cffaf602d7418d5805e3 100644 (file)
@@ -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 ();
 }
index e39c3ea0154b4bd5a32b1fe9abe6176e80528619..32754dc73480a0c3ef49a940d65125e7f83a6f7f 100644 (file)
@@ -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 baabeffb3fc69b0314045b96743221f79e68b4be..7c322eeee5cb3bbadb971afcf256cf862804d57f 100644 (file)
--- 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;