jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.368

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.368
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.368
3ef2ca
Problem:    Restoring the window sizes after closing the command line window
3ef2ca
	    doesn't work properly if there are nested splits.
3ef2ca
Solution:   Restore the sizes twice. (Hirohito Higashi)
3ef2ca
Files:	    src/window.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.367/src/window.c	2014-07-16 14:16:41.519771715 +0200
3ef2ca
--- src/window.c	2014-07-16 15:13:52.895701974 +0200
3ef2ca
***************
3ef2ca
*** 4848,4862 ****
3ef2ca
      garray_T	*gap;
3ef2ca
  {
3ef2ca
      win_T	*wp;
3ef2ca
!     int		i;
3ef2ca
  
3ef2ca
      if (win_count() * 2 == gap->ga_len)
3ef2ca
      {
3ef2ca
! 	i = 0;
3ef2ca
! 	for (wp = firstwin; wp != NULL; wp = wp->w_next)
3ef2ca
  	{
3ef2ca
! 	    frame_setwidth(wp->w_frame, ((int *)gap->ga_data)[i++]);
3ef2ca
! 	    win_setheight_win(((int *)gap->ga_data)[i++], wp);
3ef2ca
  	}
3ef2ca
  	/* recompute the window positions */
3ef2ca
  	(void)win_comp_pos();
3ef2ca
--- 4848,4867 ----
3ef2ca
      garray_T	*gap;
3ef2ca
  {
3ef2ca
      win_T	*wp;
3ef2ca
!     int		i, j;
3ef2ca
  
3ef2ca
      if (win_count() * 2 == gap->ga_len)
3ef2ca
      {
3ef2ca
! 	/* The order matters, because frames contain other frames, but it's
3ef2ca
! 	 * difficult to get right. The easy way out is to do it twice. */
3ef2ca
! 	for (j = 0; j < 2; ++j)
3ef2ca
  	{
3ef2ca
! 	    i = 0;
3ef2ca
! 	    for (wp = firstwin; wp != NULL; wp = wp->w_next)
3ef2ca
! 	    {
3ef2ca
! 		frame_setwidth(wp->w_frame, ((int *)gap->ga_data)[i++]);
3ef2ca
! 		win_setheight_win(((int *)gap->ga_data)[i++], wp);
3ef2ca
! 	    }
3ef2ca
  	}
3ef2ca
  	/* recompute the window positions */
3ef2ca
  	(void)win_comp_pos();
3ef2ca
*** ../vim-7.4.367/src/version.c	2014-07-16 14:42:37.923740082 +0200
3ef2ca
--- src/version.c	2014-07-16 15:14:46.035700894 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     368,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
FROG: How you English say:  I one more time, mac, I unclog my nose towards
3ef2ca
      you, sons of a window-dresser,  so, you think you could out-clever us
3ef2ca
      French fellows with your silly knees-bent creeping about advancing
3ef2ca
      behaviour.  (blows a raspberry) I wave my private parts at your aunties,
3ef2ca
      you brightly-coloured, mealy-templed, cranberry-smelling, electric
3ef2ca
      donkey-bottom biters.
3ef2ca
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///