On Fr, 09 Aug 2013, Ben Fritz wrote:
> On Friday, August 9, 2013 11:20:37 AM UTC-5, Dimitar DIMITROV wrote:
> > >I don't see anything wrong. For me it selects all text from the opening {
> > >to the closing }. What do you
> > see?
> > >
> > >I tried gvim 7.3.822 on Windows, and also vim (not gvim) 7.4b.14 on
> > >Solaris, both with "Huge" features. What version are you using?
> >
> > Obviously I wasn't clear enough here so I will detail a bit:
> >
> > First of all, because I am setting 've to all I hope it is clear that my
> > cursor is simply where it is without any white spaces before => so in
> > 'virtual' space
> >
>
> Nope, that wasn't clear...I added a bunch of spaces to put the cursor there,
> although I did have 've' set to all.
>
> > And what I get is:
> >
> > if {
> > *
> > *
> > }************X
> >
> > * representing visual selection
> >
> > Instead of
> >
> > if {*
> > *
> > *
> > }
> >
> > I used latest vim from hg to perform the test
>
> Now I can reproduce on 7.3.822 Windows gvim. I assume it also happens in
> later versions since you tested from the latest in Mercurial.
Here is a patch:
diff --git a/src/search.c b/src/search.c
--- a/src/search.c
+++ b/src/search.c
@@ -3675,6 +3675,11 @@
if (sol && gchar_cursor() != NUL)
inc(&curwin->w_cursor); /* include the line break */
VIsual = start_pos;
+#ifdef FEAT_VISUAL
+ if (*p_ve == 'a')
+ /* make sure, the selection remains at that character */
+ VIsual.coladd = 0;
+#endif
VIsual_mode = 'v';
redraw_curbuf_later(INVERTED); /* update the inversion */
showmode();
regards,
Christian
--
Ich lebe und das heißt ich tanze mit dem Tod
-- Herman van Veen
--
--
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/groups/opt_out.