43a1faf
To: vim-dev@vim.org
43a1faf
Subject: Patch 7.2.329
43a1faf
Fcc: outbox
43a1faf
From: Bram Moolenaar <Bram@moolenaar.net>
43a1faf
Mime-Version: 1.0
43a1faf
Content-Type: text/plain; charset=UTF-8
43a1faf
Content-Transfer-Encoding: 8bit
43a1faf
------------
43a1faf
43a1faf
Patch 7.2.329
43a1faf
Problem:    "g_" doesn't position cursor correctly when in Visual mode and
43a1faf
	    'selection' is "exclusive". (Ben Fritz)
43a1faf
Solution:   Call adjust_for_sel().
43a1faf
Files:	    src/normal.c
43a1faf
43a1faf
43a1faf
*** ../vim-7.2.328/src/normal.c	2009-12-24 15:00:31.000000000 +0100
43a1faf
--- src/normal.c	2010-01-09 15:19:47.000000000 +0100
43a1faf
***************
43a1faf
*** 7873,7878 ****
43a1faf
--- 7873,7881 ----
43a1faf
  				    && vim_iswhite(ptr[curwin->w_cursor.col]))
43a1faf
  		--curwin->w_cursor.col;
43a1faf
  	    curwin->w_set_curswant = TRUE;
43a1faf
+ #ifdef FEAT_VISUAL
43a1faf
+ 	    adjust_for_sel(cap);
43a1faf
+ #endif
43a1faf
  	}
43a1faf
  	break;
43a1faf
  
43a1faf
*** ../vim-7.2.328/src/version.c	2010-01-12 12:48:40.000000000 +0100
43a1faf
--- src/version.c	2010-01-12 15:41:13.000000000 +0100
43a1faf
***************
43a1faf
*** 683,684 ****
43a1faf
--- 683,686 ----
43a1faf
  {   /* Add new patch number below this line */
43a1faf
+ /**/
43a1faf
+     329,
43a1faf
  /**/
43a1faf
43a1faf
-- 
43a1faf
From "know your smileys":
43a1faf
 |-(	Contact lenses, but has lost them
43a1faf
43a1faf
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
43a1faf
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
43a1faf
\\\        download, build and distribute -- http://www.A-A-P.org        ///
43a1faf
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///