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 -- Br...@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 ///