Karsten Hopp 8589fd
To: vim_dev@googlegroups.com
Karsten Hopp 8589fd
Subject: Patch 7.3.292
Karsten Hopp 8589fd
Fcc: outbox
Karsten Hopp 8589fd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8589fd
Mime-Version: 1.0
Karsten Hopp 8589fd
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8589fd
Content-Transfer-Encoding: 8bit
Karsten Hopp 8589fd
------------
Karsten Hopp 8589fd
Karsten Hopp 8589fd
Patch 7.3.292
Karsten Hopp 8589fd
Problem:    Crash when using fold markers and selecting a visual block that
Karsten Hopp 8589fd
	    includes a folded line and goes to end of line. (Sam Lidder)
Karsten Hopp 8589fd
Solution:   Check for the column to be MAXCOL. (James Vega)
Karsten Hopp 8589fd
Files:	    src/screen.c
Karsten Hopp 8589fd
Karsten Hopp 8589fd
Karsten Hopp 8589fd
*** ../vim-7.3.291/src/screen.c	2011-08-10 14:32:33.000000000 +0200
Karsten Hopp 8589fd
--- src/screen.c	2011-09-02 13:58:18.000000000 +0200
Karsten Hopp 8589fd
***************
Karsten Hopp 8589fd
*** 2531,2537 ****
Karsten Hopp 8589fd
  		/* Visual block mode: highlight the chars part of the block */
Karsten Hopp 8589fd
  		if (wp->w_old_cursor_fcol + txtcol < (colnr_T)W_WIDTH(wp))
Karsten Hopp 8589fd
  		{
Karsten Hopp 8589fd
! 		    if (wp->w_old_cursor_lcol + txtcol < (colnr_T)W_WIDTH(wp))
Karsten Hopp 8589fd
  			len = wp->w_old_cursor_lcol;
Karsten Hopp 8589fd
  		    else
Karsten Hopp 8589fd
  			len = W_WIDTH(wp) - txtcol;
Karsten Hopp 8589fd
--- 2531,2539 ----
Karsten Hopp 8589fd
  		/* Visual block mode: highlight the chars part of the block */
Karsten Hopp 8589fd
  		if (wp->w_old_cursor_fcol + txtcol < (colnr_T)W_WIDTH(wp))
Karsten Hopp 8589fd
  		{
Karsten Hopp 8589fd
! 		    if (wp->w_old_cursor_lcol != MAXCOL
Karsten Hopp 8589fd
! 			     && wp->w_old_cursor_lcol + txtcol
Karsten Hopp 8589fd
! 						       < (colnr_T)W_WIDTH(wp))
Karsten Hopp 8589fd
  			len = wp->w_old_cursor_lcol;
Karsten Hopp 8589fd
  		    else
Karsten Hopp 8589fd
  			len = W_WIDTH(wp) - txtcol;
Karsten Hopp 8589fd
*** ../vim-7.3.291/src/version.c	2011-09-02 12:27:20.000000000 +0200
Karsten Hopp 8589fd
--- src/version.c	2011-09-02 14:00:03.000000000 +0200
Karsten Hopp 8589fd
***************
Karsten Hopp 8589fd
*** 711,712 ****
Karsten Hopp 8589fd
--- 711,714 ----
Karsten Hopp 8589fd
  {   /* Add new patch number below this line */
Karsten Hopp 8589fd
+ /**/
Karsten Hopp 8589fd
+     292,
Karsten Hopp 8589fd
  /**/
Karsten Hopp 8589fd
Karsten Hopp 8589fd
-- 
Karsten Hopp 8589fd
Hacker: Someone skilled in computer programming (good guy).
Karsten Hopp 8589fd
Cracker: A hacker that uses his skills to crack software (bad guy).
Karsten Hopp 8589fd
Karsten Hopp 8589fd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8589fd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8589fd
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8589fd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///