Hi Bram!
On Sa, 13 Dez 2014, Bram Moolenaar wrote:
> 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)
> Files: src/search.c
Same problem exists with inner-block:
:set selection=exclusive
(foobar ä)
vi)d
Expected result:
()
Actual result:
(ä)
diff --git a/src/search.c b/src/search.c
--- a/src/search.c
+++ b/src/search.c
@@ -3799,7 +3799,7 @@ current_block(oap, count, include, what,
if (VIsual_active)
{
if (*p_sel == 'e')
- ++curwin->w_cursor.col;
+ inc(&curwin->w_cursor);
if (sol && gchar_cursor() != NUL)
inc(&curwin->w_cursor); /* include the line break */
VIsual = start_pos;
Best,
Christian
--
Der Rollce Royce ist der Mercedes unter den Autos.
-- Winfried Bornemann
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.