summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-01 18:27:49 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-01 18:27:49 +0200
commit8667d66ca923d361e00e6369cbff37283db5a432 (patch)
treef998c3f7450b2d50133a89fd628d5d4fc7276cb4
parent6017f3799dbb744fc34894d968b36729e607203e (diff)
patch 7.4.847v7.4.847
Problem: "vi)d" may leave a character behind. Solution: Skip over multi-byte character. (Christian Brabandt)
-rw-r--r--src/search.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index a78f051c26..74398e39e8 100644
--- a/src/search.c
+++ b/src/search.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index f6ec16aa97..1a5e237648 100644
--- 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,