Karsten Hopp bb1f3e
To: vim_dev@googlegroups.com
Karsten Hopp bb1f3e
Subject: Patch 7.4.325
Karsten Hopp bb1f3e
Fcc: outbox
Karsten Hopp bb1f3e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bb1f3e
Mime-Version: 1.0
Karsten Hopp bb1f3e
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bb1f3e
Content-Transfer-Encoding: 8bit
Karsten Hopp bb1f3e
------------
Karsten Hopp bb1f3e
Karsten Hopp bb1f3e
Patch 7.4.325
Karsten Hopp bb1f3e
Problem:    When starting the gui and changing the window size the status line
Karsten Hopp bb1f3e
	    may not be drawn correctly.
Karsten Hopp bb1f3e
Solution:   Catch new_win_height() being called recursively. (Christian
Karsten Hopp bb1f3e
	    Brabandt)
Karsten Hopp bb1f3e
Files:	    src/window.c
Karsten Hopp bb1f3e
Karsten Hopp bb1f3e
Karsten Hopp bb1f3e
*** ../vim-7.4.324/src/window.c	2014-06-12 14:01:27.579769788 +0200
Karsten Hopp bb1f3e
--- src/window.c	2014-06-13 20:04:59.051863582 +0200
Karsten Hopp bb1f3e
***************
Karsten Hopp bb1f3e
*** 5660,5666 ****
Karsten Hopp bb1f3e
      if (wp->w_height > 0)
Karsten Hopp bb1f3e
      {
Karsten Hopp bb1f3e
  	if (wp == curwin)
Karsten Hopp bb1f3e
! 	    validate_cursor();		/* w_wrow needs to be valid */
Karsten Hopp bb1f3e
  	if (wp->w_wrow != wp->w_prev_fraction_row)
Karsten Hopp bb1f3e
  	    set_fraction(wp);
Karsten Hopp bb1f3e
      }
Karsten Hopp bb1f3e
--- 5660,5671 ----
Karsten Hopp bb1f3e
      if (wp->w_height > 0)
Karsten Hopp bb1f3e
      {
Karsten Hopp bb1f3e
  	if (wp == curwin)
Karsten Hopp bb1f3e
! 	    /* w_wrow needs to be valid. When setting 'laststatus' this may
Karsten Hopp bb1f3e
! 	     * call win_new_height() recursively. */
Karsten Hopp bb1f3e
! 	    validate_cursor();
Karsten Hopp bb1f3e
! 	if (wp->w_height != prev_height)
Karsten Hopp bb1f3e
! 	    return;  /* Recursive call already changed the size, bail out here
Karsten Hopp bb1f3e
! 			to avoid the following to mess things up. */
Karsten Hopp bb1f3e
  	if (wp->w_wrow != wp->w_prev_fraction_row)
Karsten Hopp bb1f3e
  	    set_fraction(wp);
Karsten Hopp bb1f3e
      }
Karsten Hopp bb1f3e
*** ../vim-7.4.324/src/version.c	2014-06-12 19:44:45.324549030 +0200
Karsten Hopp bb1f3e
--- src/version.c	2014-06-13 20:06:12.947866378 +0200
Karsten Hopp bb1f3e
***************
Karsten Hopp bb1f3e
*** 736,737 ****
Karsten Hopp bb1f3e
--- 736,739 ----
Karsten Hopp bb1f3e
  {   /* Add new patch number below this line */
Karsten Hopp bb1f3e
+ /**/
Karsten Hopp bb1f3e
+     325,
Karsten Hopp bb1f3e
  /**/
Karsten Hopp bb1f3e
Karsten Hopp bb1f3e
-- 
Karsten Hopp bb1f3e
DINGO:   And after the spanking ... the oral sex.
Karsten Hopp bb1f3e
GALAHAD: Oh, dear! Well, I...
Karsten Hopp bb1f3e
GIRLS:   The oral sex ...  The oral sex.
Karsten Hopp bb1f3e
GALAHAD: Well, I suppose I could stay a BIT longer.
Karsten Hopp bb1f3e
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp bb1f3e
Karsten Hopp bb1f3e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bb1f3e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bb1f3e
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bb1f3e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///