mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
vim-patch:7.4.547
Problem: Using "vit" does not select a multi-byte character at the end correctly. Solution: Advance the cursor over the multi-byte character. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=v7-4-547
This commit is contained in:
@@ -3294,10 +3294,11 @@ again:
|
|||||||
if (VIsual_active) {
|
if (VIsual_active) {
|
||||||
/* If the end is before the start there is no text between tags, select
|
/* If the end is before the start there is no text between tags, select
|
||||||
* the char under the cursor. */
|
* the char under the cursor. */
|
||||||
if (lt(end_pos, start_pos))
|
if (lt(end_pos, start_pos)) {
|
||||||
curwin->w_cursor = start_pos;
|
curwin->w_cursor = start_pos;
|
||||||
else if (*p_sel == 'e')
|
} else if (*p_sel == 'e') {
|
||||||
++curwin->w_cursor.col;
|
inc_cursor();
|
||||||
|
}
|
||||||
VIsual = start_pos;
|
VIsual = start_pos;
|
||||||
VIsual_mode = 'v';
|
VIsual_mode = 'v';
|
||||||
redraw_curbuf_later(INVERTED); /* update the inversion */
|
redraw_curbuf_later(INVERTED); /* update the inversion */
|
||||||
|
@@ -191,7 +191,7 @@ static int included_patches[] = {
|
|||||||
//550,
|
//550,
|
||||||
//549,
|
//549,
|
||||||
//548 NA
|
//548 NA
|
||||||
//547,
|
547,
|
||||||
//546,
|
//546,
|
||||||
545,
|
545,
|
||||||
//544 NA
|
//544 NA
|
||||||
|
Reference in New Issue
Block a user