Karsten Hopp 7545e0
To: vim_dev@googlegroups.com
Karsten Hopp 7545e0
Subject: Patch 7.4.847
Karsten Hopp 7545e0
Fcc: outbox
Karsten Hopp 7545e0
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 7545e0
Mime-Version: 1.0
Karsten Hopp 7545e0
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 7545e0
Content-Transfer-Encoding: 8bit
Karsten Hopp 7545e0
------------
Karsten Hopp 7545e0
Karsten Hopp 7545e0
Patch 7.4.847
Karsten Hopp 7545e0
Problem:    "vi)d" may leave a character behind.
Karsten Hopp 7545e0
Solution:   Skip over multi-byte character. (Christian Brabandt)
Karsten Hopp 7545e0
Files:      src/search.c
Karsten Hopp 7545e0
Karsten Hopp 7545e0
Karsten Hopp 7545e0
*** ../vim-7.4.846/src/search.c	2015-08-26 23:01:16.449677001 +0200
Karsten Hopp 7545e0
--- src/search.c	2015-09-01 18:26:33.629994624 +0200
Karsten Hopp 7545e0
***************
Karsten Hopp 7545e0
*** 3799,3805 ****
Karsten Hopp 7545e0
      if (VIsual_active)
Karsten Hopp 7545e0
      {
Karsten Hopp 7545e0
  	if (*p_sel == 'e')
Karsten Hopp 7545e0
! 	    ++curwin->w_cursor.col;
Karsten Hopp 7545e0
  	if (sol && gchar_cursor() != NUL)
Karsten Hopp 7545e0
  	    inc(&curwin->w_cursor);	/* include the line break */
Karsten Hopp 7545e0
  	VIsual = start_pos;
Karsten Hopp 7545e0
--- 3799,3805 ----
Karsten Hopp 7545e0
      if (VIsual_active)
Karsten Hopp 7545e0
      {
Karsten Hopp 7545e0
  	if (*p_sel == 'e')
Karsten Hopp 7545e0
! 	    inc(&curwin->w_cursor);
Karsten Hopp 7545e0
  	if (sol && gchar_cursor() != NUL)
Karsten Hopp 7545e0
  	    inc(&curwin->w_cursor);	/* include the line break */
Karsten Hopp 7545e0
  	VIsual = start_pos;
Karsten Hopp 7545e0
*** ../vim-7.4.846/src/version.c	2015-09-01 17:50:32.480493960 +0200
Karsten Hopp 7545e0
--- src/version.c	2015-09-01 18:26:07.286269459 +0200
Karsten Hopp 7545e0
***************
Karsten Hopp 7545e0
*** 743,744 ****
Karsten Hopp 7545e0
--- 743,746 ----
Karsten Hopp 7545e0
  {   /* Add new patch number below this line */
Karsten Hopp 7545e0
+ /**/
Karsten Hopp 7545e0
+     847,
Karsten Hopp 7545e0
  /**/
Karsten Hopp 7545e0
Karsten Hopp 7545e0
-- 
Karsten Hopp 7545e0
Did Adam and Eve have navels?
Karsten Hopp 7545e0
Karsten Hopp 7545e0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 7545e0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 7545e0
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 7545e0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///