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:
Florian Walch
2014-12-24 14:34:04 +01:00
parent dde24224ec
commit 28d3923bd8
2 changed files with 5 additions and 4 deletions

View File

@@ -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 */

View File

@@ -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