From 8340dd9b2919299bd5802227fcdf2df706592d41 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 13 Dec 2014 20:11:33 +0100 Subject: [PATCH] updated for version 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) --- src/search.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index b64b8f6ce..e22109817 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 94ba992cb..7abbfb591 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 547, /**/ 546, /**/ -- 2.50.1