vim-patch:7.4.847

Problem:    "vi)d" may leave a character behind.
Solution:   Skip over multi-byte character. (Christian Brabandt)

8667d66ca9
This commit is contained in:
Jurica Bradaric
2016-02-09 23:37:06 +01:00
parent 84281bf675
commit 14c543231c
2 changed files with 7 additions and 5 deletions

View File

@@ -3140,10 +3140,12 @@ current_block (
}
if (VIsual_active) {
if (*p_sel == 'e')
++curwin->w_cursor.col;
if (sol && gchar_cursor() != NUL)
inc(&curwin->w_cursor); /* include the line break */
if (*p_sel == 'e') {
inc(&curwin->w_cursor);
}
if (sol && gchar_cursor() != NUL) {
inc(&curwin->w_cursor); // include the line break
}
VIsual = start_pos;
VIsual_mode = 'v';
redraw_curbuf_later(INVERTED); /* update the inversion */

View File

@@ -441,7 +441,7 @@ static int included_patches[] = {
// 850 NA
849,
848,
// 847,
847,
// 846 NA
// 845,
// 844,