]> granicus.if.org Git - vim/commitdiff
patch 7.4.847 v7.4.847
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Sep 2015 16:27:49 +0000 (18:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Sep 2015 16:27:49 +0000 (18:27 +0200)
Problem:    "vi)d" may leave a character behind.
Solution:   Skip over multi-byte character. (Christian Brabandt)

src/search.c
src/version.c

index a78f051c2628b89c74a16f22a53141b51414dbcc..74398e39e826595b70708741d6d33e7a34605895 100644 (file)
@@ -3799,7 +3799,7 @@ current_block(oap, count, include, what, other)
     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;
index f6ec16aa972e0e46b74cd6d04c9e9428ce43696b..1a5e2376481f82092f1efb32b7614563103e8a52 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    847,
 /**/
     846,
 /**/