diff options
author | Florian Walch <florian@fwalch.com> | 2014-12-24 14:34:04 +0100 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2014-12-24 23:29:00 +0100 |
commit | 28d3923bd8123b0e57f1f9ffef57356f19476915 (patch) | |
tree | a9ca224ce4358dedaa813222bf310404adb5240d /src | |
parent | dde24224ece80e7d4bb079b7361a8c83b0a56208 (diff) | |
download | rneovim-28d3923bd8123b0e57f1f9ffef57356f19476915.tar.gz rneovim-28d3923bd8123b0e57f1f9ffef57356f19476915.tar.bz2 rneovim-28d3923bd8123b0e57f1f9ffef57356f19476915.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/search.c | 7 | ||||
-rw-r--r-- | src/nvim/version.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index ef98944a06..5158e6cd86 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -3294,10 +3294,11 @@ again: if (VIsual_active) { /* If the end is before the start there is no text between tags, select * the char under the cursor. */ - if (lt(end_pos, start_pos)) + if (lt(end_pos, start_pos)) { curwin->w_cursor = start_pos; - else if (*p_sel == 'e') - ++curwin->w_cursor.col; + } else if (*p_sel == 'e') { + inc_cursor(); + } VIsual = start_pos; VIsual_mode = 'v'; redraw_curbuf_later(INVERTED); /* update the inversion */ diff --git a/src/nvim/version.c b/src/nvim/version.c index 22b7b54019..6bbb5e6024 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -191,7 +191,7 @@ static int included_patches[] = { //550, //549, //548 NA - //547, + 547, //546, 545, //544 NA |