On Sun, Oct 08, 2017 at 07:11:05PM +0800, Kevin J. McCarthy wrote:
> You could try the following patch.  Unfortunately, it will affect other
> screens besides the index.  I can't remember off the top of my head if
> any places make assumptions that the status has one row, but a very
> quick check seemed to be okay.

Sorry, that wasn't quite right.  The help and message windows get
affected, so their rows needs to be reset.  Hopefully this version is
something closer to working.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
# HG changeset patch
# User Kevin McCarthy <[email protected]>
# Date 1507462637 -28800
#      Sun Oct 08 19:37:17 2017 +0800
# Node ID 6ce7a3f576b96df6f4a67f4d69b5247ae45968a9
# Parent  ba4a3cb944c59ca53adfc3f99cf67dc2c22d7b6a
[mq]: hack

diff --git a/curs_lib.c b/curs_lib.c
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -570,28 +570,32 @@
 
 void mutt_reflow_windows (void)
 {
   if (option (OPTNOCURSES))
     return;
 
   dprint (2, (debugfile, "In mutt_reflow_windows\n"));
 
-  MuttStatusWindow->rows = 1;
+  MuttStatusWindow->rows = 2;
   MuttStatusWindow->cols = COLS;
   MuttStatusWindow->row_offset = option (OPTSTATUSONTOP) ? 0 : LINES - 2;
   MuttStatusWindow->col_offset = 0;
 
   memcpy (MuttHelpWindow, MuttStatusWindow, sizeof (mutt_window_t));
   if (! option (OPTHELP))
     MuttHelpWindow->rows = 0;
   else
+  {
+    MuttHelpWindow->rows = 1;
     MuttHelpWindow->row_offset = option (OPTSTATUSONTOP) ? LINES - 2 : 0;
+  }
 
   memcpy (MuttMessageWindow, MuttStatusWindow, sizeof (mutt_window_t));
+  MuttMessageWindow->rows = 1;
   MuttMessageWindow->row_offset = LINES - 1;
 
   memcpy (MuttIndexWindow, MuttStatusWindow, sizeof (mutt_window_t));
   MuttIndexWindow->rows = MAX(LINES - MuttStatusWindow->rows -
 			      MuttHelpWindow->rows - MuttMessageWindow->rows, 0);
   MuttIndexWindow->row_offset = option (OPTSTATUSONTOP) ? MuttStatusWindow->rows :
                                                           MuttHelpWindow->rows;
 

Attachment: signature.asc
Description: PGP signature

Reply via email to