Karsten Hopp d35e57
To: vim-dev@vim.org
Karsten Hopp d35e57
Subject: patch 7.0.196
Karsten Hopp d35e57
Fcc: outbox
Karsten Hopp d35e57
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d35e57
Mime-Version: 1.0
Karsten Hopp d35e57
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp d35e57
Content-Transfer-Encoding: 8bit
Karsten Hopp d35e57
------------
Karsten Hopp d35e57
Karsten Hopp d35e57
Patch 7.0.196
Karsten Hopp d35e57
Problem:    When using ":vert ball" the computation of the mouse pointer
Karsten Hopp d35e57
	    position may be off by one column. (Stefan Karlsson)
Karsten Hopp d35e57
Solution:   Recompute the frame width when moving the vertical separator from
Karsten Hopp d35e57
	    one window to another.
Karsten Hopp d35e57
Files:	    src/window.c
Karsten Hopp d35e57
Karsten Hopp d35e57
Karsten Hopp d35e57
*** ../vim-7.0.195/src/window.c	Tue Nov 21 20:57:21 2006
Karsten Hopp d35e57
--- src/window.c	Tue Feb 20 00:16:35 2007
Karsten Hopp d35e57
***************
Karsten Hopp d35e57
*** 1541,1548 ****
Karsten Hopp d35e57
  	    win1->w_prev->w_status_height = win1->w_status_height;
Karsten Hopp d35e57
  	    win1->w_status_height = height;
Karsten Hopp d35e57
  #ifdef FEAT_VERTSPLIT
Karsten Hopp d35e57
! 	    win1->w_prev->w_vsep_width = 0;
Karsten Hopp d35e57
! 	    win1->w_vsep_width = 1;
Karsten Hopp d35e57
  #endif
Karsten Hopp d35e57
  	}
Karsten Hopp d35e57
  	else if (win2 == lastwin)
Karsten Hopp d35e57
--- 1541,1555 ----
Karsten Hopp d35e57
  	    win1->w_prev->w_status_height = win1->w_status_height;
Karsten Hopp d35e57
  	    win1->w_status_height = height;
Karsten Hopp d35e57
  #ifdef FEAT_VERTSPLIT
Karsten Hopp d35e57
! 	    if (win1->w_prev->w_vsep_width == 1)
Karsten Hopp d35e57
! 	    {
Karsten Hopp d35e57
! 		/* Remove the vertical separator from the last-but-one window,
Karsten Hopp d35e57
! 		 * add it to the last window.  Adjust the frame widths. */
Karsten Hopp d35e57
! 		win1->w_prev->w_vsep_width = 0;
Karsten Hopp d35e57
! 		win1->w_prev->w_frame->fr_width -= 1;
Karsten Hopp d35e57
! 		win1->w_vsep_width = 1;
Karsten Hopp d35e57
! 		win1->w_frame->fr_width += 1;
Karsten Hopp d35e57
! 	    }
Karsten Hopp d35e57
  #endif
Karsten Hopp d35e57
  	}
Karsten Hopp d35e57
  	else if (win2 == lastwin)
Karsten Hopp d35e57
***************
Karsten Hopp d35e57
*** 1551,1558 ****
Karsten Hopp d35e57
  	    win1->w_status_height = win2->w_status_height;
Karsten Hopp d35e57
  	    win2->w_status_height = height;
Karsten Hopp d35e57
  #ifdef FEAT_VERTSPLIT
Karsten Hopp d35e57
! 	    win2->w_vsep_width = 1;
Karsten Hopp d35e57
! 	    win1->w_vsep_width = 0;
Karsten Hopp d35e57
  #endif
Karsten Hopp d35e57
  	}
Karsten Hopp d35e57
  	win_remove(win1, NULL);
Karsten Hopp d35e57
--- 1558,1572 ----
Karsten Hopp d35e57
  	    win1->w_status_height = win2->w_status_height;
Karsten Hopp d35e57
  	    win2->w_status_height = height;
Karsten Hopp d35e57
  #ifdef FEAT_VERTSPLIT
Karsten Hopp d35e57
! 	    if (win1->w_vsep_width == 1)
Karsten Hopp d35e57
! 	    {
Karsten Hopp d35e57
! 		/* Remove the vertical separator from win1, add it to the last
Karsten Hopp d35e57
! 		 * window, win2.  Adjust the frame widths. */
Karsten Hopp d35e57
! 		win2->w_vsep_width = 1;
Karsten Hopp d35e57
! 		win2->w_frame->fr_width += 1;
Karsten Hopp d35e57
! 		win1->w_vsep_width = 0;
Karsten Hopp d35e57
! 		win1->w_frame->fr_width -= 1;
Karsten Hopp d35e57
! 	    }
Karsten Hopp d35e57
  #endif
Karsten Hopp d35e57
  	}
Karsten Hopp d35e57
  	win_remove(win1, NULL);
Karsten Hopp d35e57
*** ../vim-7.0.195/src/version.c	Tue Feb 13 06:21:24 2007
Karsten Hopp d35e57
--- src/version.c	Tue Feb 20 00:14:00 2007
Karsten Hopp d35e57
***************
Karsten Hopp d35e57
*** 668,669 ****
Karsten Hopp d35e57
--- 668,671 ----
Karsten Hopp d35e57
  {   /* Add new patch number below this line */
Karsten Hopp d35e57
+ /**/
Karsten Hopp d35e57
+     196,
Karsten Hopp d35e57
  /**/
Karsten Hopp d35e57
Karsten Hopp d35e57
-- 
Karsten Hopp d35e57
hundred-and-one symptoms of being an internet addict:
Karsten Hopp d35e57
150. You find yourself counting emoticons to get to sleep.
Karsten Hopp d35e57
Karsten Hopp d35e57
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d35e57
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d35e57
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp d35e57
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///