diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-09-01 18:27:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-09-01 18:27:49 +0200 |
commit | 8667d66ca923d361e00e6369cbff37283db5a432 (patch) | |
tree | f998c3f7450b2d50133a89fd628d5d4fc7276cb4 | |
parent | 6017f3799dbb744fc34894d968b36729e607203e (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.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
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, |