b0aa01f
To: vim-dev@vim.org
b0aa01f
Subject: Patch 7.2.095
b0aa01f
Fcc: outbox
b0aa01f
From: Bram Moolenaar <Bram@moolenaar.net>
b0aa01f
Mime-Version: 1.0
b0aa01f
Content-Type: text/plain; charset=ISO-8859-1
b0aa01f
Content-Transfer-Encoding: 8bit
b0aa01f
------------
b0aa01f
b0aa01f
Patch 7.2.095
b0aa01f
Problem:    With Visual selection, "r" and then CTRL-C Visual mode is stopped
b0aa01f
	    but the highlighting is not removed.
b0aa01f
Solution:   Call reset_VIsual().
b0aa01f
Files:	    src/normal.c
b0aa01f
b0aa01f
b0aa01f
*** ../vim-7.2.094/src/normal.c	Thu Nov 20 16:11:03 2008
b0aa01f
--- src/normal.c	Fri Jan 30 20:37:01 2009
b0aa01f
***************
b0aa01f
*** 6783,6788 ****
b0aa01f
--- 6783,6790 ----
b0aa01f
      /* Visual mode "r" */
b0aa01f
      if (VIsual_active)
b0aa01f
      {
b0aa01f
+ 	if (got_int)
b0aa01f
+ 	    reset_VIsual();
b0aa01f
  	nv_operator(cap);
b0aa01f
  	return;
b0aa01f
      }
b0aa01f
***************
b0aa01f
*** 7839,7845 ****
b0aa01f
  	else
b0aa01f
  	    i = curwin->w_leftcol;
b0aa01f
  	/* Go to the middle of the screen line.  When 'number' is on and lines
b0aa01f
! 	 * are wrapping the middle can be more to the left.*/
b0aa01f
  	if (cap->nchar == 'm')
b0aa01f
  	    i += (W_WIDTH(curwin) - curwin_col_off()
b0aa01f
  		    + ((curwin->w_p_wrap && i > 0)
b0aa01f
--- 7841,7847 ----
b0aa01f
  	else
b0aa01f
  	    i = curwin->w_leftcol;
b0aa01f
  	/* Go to the middle of the screen line.  When 'number' is on and lines
b0aa01f
! 	 * are wrapping the middle can be more to the left. */
b0aa01f
  	if (cap->nchar == 'm')
b0aa01f
  	    i += (W_WIDTH(curwin) - curwin_col_off()
b0aa01f
  		    + ((curwin->w_p_wrap && i > 0)
b0aa01f
*** ../vim-7.2.094/src/version.c	Wed Feb  4 11:19:40 2009
b0aa01f
--- src/version.c	Wed Feb  4 11:43:28 2009
b0aa01f
***************
b0aa01f
*** 678,679 ****
b0aa01f
--- 678,681 ----
b0aa01f
  {   /* Add new patch number below this line */
b0aa01f
+ /**/
b0aa01f
+     95,
b0aa01f
  /**/
b0aa01f
b0aa01f
-- 
b0aa01f
Nothing is fool-proof to a sufficiently talented fool.
b0aa01f
b0aa01f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
b0aa01f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
b0aa01f
\\\        download, build and distribute -- http://www.A-A-P.org        ///
b0aa01f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///