Wednesday, November 11, 2015

Re: gv on Windows

Christian Brabandt wrote:

> Hi Yongwei!
>
> On Mi, 11 Nov 2015, Yongwei Wu wrote:
>
> > If selection=exclusive (result of behave mswin), and you paste on a visual
> > area, gv selects one fewer character than if selection=inclusive. The latter
> > seems more natural.
> >
> > Is this a bug? If no, is there a way to achieve the same result as selection=
> > inclusive?
>
> Looks like a bug. Here is a patch, including a test.

Currently, when I set 'selection' to exclusive, then gv works just fine.
Thus changing how gv works seems like the wrong solution. It probably
needs to be changed where the paste happens.

Perhaps also add a test for gv used after a normal visual selection,
apparently that's missing.


--
From "know your smileys":
<|-) Chinese
<|-( Chinese and doesn't like these kind of jokes

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment