0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 7.4.847

Problem:    "vi)d" may leave a character behind.
Solution:   Skip over multi-byte character. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-09-01 18:27:49 +02:00
parent 6017f3799d
commit 8667d66ca9
2 changed files with 3 additions and 1 deletions

View File

@@ -3799,7 +3799,7 @@ current_block(oap, count, include, what, other)
if (VIsual_active) if (VIsual_active)
{ {
if (*p_sel == 'e') if (*p_sel == 'e')
++curwin->w_cursor.col; inc(&curwin->w_cursor);
if (sol && gchar_cursor() != NUL) if (sol && gchar_cursor() != NUL)
inc(&curwin->w_cursor); /* include the line break */ inc(&curwin->w_cursor); /* include the line break */
VIsual = start_pos; VIsual = start_pos;

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
847,
/**/ /**/
846, 846,
/**/ /**/