mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
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:
@@ -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 */
|
||||
|
@@ -441,7 +441,7 @@ static int included_patches[] = {
|
||||
// 850 NA
|
||||
849,
|
||||
848,
|
||||
// 847,
|
||||
847,
|
||||
// 846 NA
|
||||
// 845,
|
||||
// 844,
|
||||
|
Reference in New Issue
Block a user