diff src/search.c @ 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 3a1a6d6fb9b3
children 6fbeef3b65e6
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;