summaryrefslogtreecommitdiff
path: root/src/search.c
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 /src/search.c
parent6017f3799dbb744fc34894d968b36729e607203e (diff)
downloadvim-git-8667d66ca923d361e00e6369cbff37283db5a432.tar.gz
patch 7.4.847v7.4.847
Problem: "vi)d" may leave a character behind. Solution: Skip over multi-byte character. (Christian Brabandt)
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index a78f051c2..74398e39e 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;