changeset 7070:d92910c0c415 v7.4.847

commit https://github.com/vim/vim/commit/8667d66ca923d361e00e6369cbff37283db5a432 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 1 18:27:49 2015 +0200 patch 7.4.847 Problem: "vi)d" may leave a character behind. Solution: Skip over multi-byte character. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 01 Sep 2015 18:30:04 +0200
parents be6b373ac4d6
children 9d559fd7c415
files src/search.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -3799,7 +3799,7 @@ current_block(oap, count, include, what,
     if (VIsual_active)
     {
 	if (*p_sel == 'e')
-	    ++curwin->w_cursor.col;
+	    inc(&curwin->w_cursor);
 	if (sol && gchar_cursor() != NUL)
 	    inc(&curwin->w_cursor);	/* include the line break */
 	VIsual = start_pos;
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    847,
+/**/
     846,
 /**/
     845,