Karsten Hopp 227c4c
To: vim_dev@googlegroups.com
Karsten Hopp 227c4c
Subject: Patch 7.4.547
Karsten Hopp 227c4c
Fcc: outbox
Karsten Hopp 227c4c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 227c4c
Mime-Version: 1.0
Karsten Hopp 227c4c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 227c4c
Content-Transfer-Encoding: 8bit
Karsten Hopp 227c4c
------------
Karsten Hopp 227c4c
Karsten Hopp 227c4c
Patch 7.4.547
Karsten Hopp 227c4c
Problem:    Using "vit" does not select a multi-byte character at the end
Karsten Hopp 227c4c
            correctly.
Karsten Hopp 227c4c
Solution:   Advance the cursor over the multi-byte character. (Christian
Karsten Hopp 227c4c
            Brabandt)
Karsten Hopp 227c4c
Files:      src/search.c
Karsten Hopp 227c4c
Karsten Hopp 227c4c
Karsten Hopp 227c4c
*** ../vim-7.4.546/src/search.c	2014-12-13 03:17:07.465046539 +0100
Karsten Hopp 227c4c
--- src/search.c	2014-12-13 20:08:39.464238348 +0100
Karsten Hopp 227c4c
***************
Karsten Hopp 227c4c
*** 3932,3938 ****
Karsten Hopp 227c4c
  	if (lt(end_pos, start_pos))
Karsten Hopp 227c4c
  	    curwin->w_cursor = start_pos;
Karsten Hopp 227c4c
  	else if (*p_sel == 'e')
Karsten Hopp 227c4c
! 	    ++curwin->w_cursor.col;
Karsten Hopp 227c4c
  	VIsual = start_pos;
Karsten Hopp 227c4c
  	VIsual_mode = 'v';
Karsten Hopp 227c4c
  	redraw_curbuf_later(INVERTED);	/* update the inversion */
Karsten Hopp 227c4c
--- 3932,3938 ----
Karsten Hopp 227c4c
  	if (lt(end_pos, start_pos))
Karsten Hopp 227c4c
  	    curwin->w_cursor = start_pos;
Karsten Hopp 227c4c
  	else if (*p_sel == 'e')
Karsten Hopp 227c4c
! 	    inc_cursor();
Karsten Hopp 227c4c
  	VIsual = start_pos;
Karsten Hopp 227c4c
  	VIsual_mode = 'v';
Karsten Hopp 227c4c
  	redraw_curbuf_later(INVERTED);	/* update the inversion */
Karsten Hopp 227c4c
*** ../vim-7.4.546/src/version.c	2014-12-13 03:58:03.798672391 +0100
Karsten Hopp 227c4c
--- src/version.c	2014-12-13 20:08:44.652181415 +0100
Karsten Hopp 227c4c
***************
Karsten Hopp 227c4c
*** 743,744 ****
Karsten Hopp 227c4c
--- 743,746 ----
Karsten Hopp 227c4c
  {   /* Add new patch number below this line */
Karsten Hopp 227c4c
+ /**/
Karsten Hopp 227c4c
+     547,
Karsten Hopp 227c4c
  /**/
Karsten Hopp 227c4c
Karsten Hopp 227c4c
-- 
Karsten Hopp 227c4c
Engineers will go without food and hygiene for days to solve a problem.
Karsten Hopp 227c4c
(Other times just because they forgot.)
Karsten Hopp 227c4c
				(Scott Adams - The Dilbert principle)
Karsten Hopp 227c4c
Karsten Hopp 227c4c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 227c4c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 227c4c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 227c4c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///