lkundrak / rpms / vim

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