diff options
author | Bram Moolenaar <bram@vim.org> | 2014-12-13 20:11:33 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2014-12-13 20:11:33 +0100 |
commit | a21ec88c17e61a67f5af90e8dfe1f463061e36f4 (patch) | |
tree | 70a978274befb8058fe14d7c61cd321348e7d99e | |
parent | 1bf914cb26accd55c7656506703b1a58139717df (diff) | |
download | vim-7-4-547.tar.gz |
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)
-rw-r--r-- | src/search.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c index b64b8f6c..e2210981 100644 --- a/src/search.c +++ b/src/search.c @@ -3932,7 +3932,7 @@ again: if (lt(end_pos, start_pos)) curwin->w_cursor = start_pos; else if (*p_sel == 'e') - ++curwin->w_cursor.col; + inc_cursor(); VIsual = start_pos; VIsual_mode = 'v'; redraw_curbuf_later(INVERTED); /* update the inversion */ diff --git a/src/version.c b/src/version.c index 94ba992c..7abbfb59 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 547, +/**/ 546, /**/ 545, |