Karsten Hopp 53f554
To: vim_dev@googlegroups.com
Karsten Hopp 53f554
Subject: Patch 7.3.673
Karsten Hopp 53f554
Fcc: outbox
Karsten Hopp 53f554
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 53f554
Mime-Version: 1.0
Karsten Hopp 53f554
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 53f554
Content-Transfer-Encoding: 8bit
Karsten Hopp 53f554
------------
Karsten Hopp 53f554
Karsten Hopp 53f554
Patch 7.3.673
Karsten Hopp 53f554
Problem:    Using "gN" while 'selection' is "exclusive" misses one character.
Karsten Hopp 53f554
	    (Ben Fritz)
Karsten Hopp 53f554
Solution:   Check the direction when compensating for exclusive selection.
Karsten Hopp 53f554
	    (Christian Brabandt)
Karsten Hopp 53f554
Files:	    src/search.c
Karsten Hopp 53f554
Karsten Hopp 53f554
Karsten Hopp 53f554
*** ../vim-7.3.672/src/search.c	2012-09-05 12:16:39.000000000 +0200
Karsten Hopp 53f554
--- src/search.c	2012-10-03 13:28:49.000000000 +0200
Karsten Hopp 53f554
***************
Karsten Hopp 53f554
*** 4650,4657 ****
Karsten Hopp 53f554
      if (VIsual_active)
Karsten Hopp 53f554
      {
Karsten Hopp 53f554
  	redraw_curbuf_later(INVERTED);	/* update the inversion */
Karsten Hopp 53f554
! 	if (*p_sel == 'e' && ltoreq(VIsual, curwin->w_cursor))
Karsten Hopp 53f554
! 	    inc_cursor();
Karsten Hopp 53f554
      }
Karsten Hopp 53f554
  
Karsten Hopp 53f554
  #ifdef FEAT_FOLDING
Karsten Hopp 53f554
--- 4650,4664 ----
Karsten Hopp 53f554
      if (VIsual_active)
Karsten Hopp 53f554
      {
Karsten Hopp 53f554
  	redraw_curbuf_later(INVERTED);	/* update the inversion */
Karsten Hopp 53f554
! 	if (*p_sel == 'e')
Karsten Hopp 53f554
! 	{
Karsten Hopp 53f554
! 	    /* Correction for exclusive selection depends on the direction. */
Karsten Hopp 53f554
! 	    if (forward && ltoreq(VIsual, curwin->w_cursor))
Karsten Hopp 53f554
! 		inc_cursor();
Karsten Hopp 53f554
! 	    else if (!forward && ltoreq(curwin->w_cursor, VIsual))
Karsten Hopp 53f554
! 		inc(&VIsual);
Karsten Hopp 53f554
! 	}
Karsten Hopp 53f554
! 
Karsten Hopp 53f554
      }
Karsten Hopp 53f554
  
Karsten Hopp 53f554
  #ifdef FEAT_FOLDING
Karsten Hopp 53f554
*** ../vim-7.3.672/src/version.c	2012-09-21 14:00:05.000000000 +0200
Karsten Hopp 53f554
--- src/version.c	2012-10-03 13:31:45.000000000 +0200
Karsten Hopp 53f554
***************
Karsten Hopp 53f554
*** 721,722 ****
Karsten Hopp 53f554
--- 721,724 ----
Karsten Hopp 53f554
  {   /* Add new patch number below this line */
Karsten Hopp 53f554
+ /**/
Karsten Hopp 53f554
+     673,
Karsten Hopp 53f554
  /**/
Karsten Hopp 53f554
Karsten Hopp 53f554
-- 
Karsten Hopp 53f554
You can be stopped by the police for biking over 65 miles per hour.
Karsten Hopp 53f554
You are not allowed to walk across a street on your hands.
Karsten Hopp 53f554
		[real standing laws in Connecticut, United States of America]
Karsten Hopp 53f554
Karsten Hopp 53f554
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 53f554
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 53f554
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 53f554
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///