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