commit | 8667d66ca923d361e00e6369cbff37283db5a432 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Sep 01 18:27:49 2015 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Sep 01 18:27:49 2015 +0200 |
tree | f998c3f7450b2d50133a89fd628d5d4fc7276cb4 | |
parent | 6017f3799dbb744fc34894d968b36729e607203e [diff] [blame] |
patch 7.4.847 Problem: "vi)d" may leave a character behind. Solution: Skip over multi-byte character. (Christian Brabandt)
diff --git a/src/search.c b/src/search.c index a78f051..74398e3 100644 --- a/src/search.c +++ b/src/search.c
@@ -3799,7 +3799,7 @@ 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;