On 20:33 Sun 15 Apr , Christian Brabandt wrote:
> Hi Marcin!
>
> On So, 15 Apr 2012, Marcin Szamotulski wrote:
>
> > This patch works for
> > set cb=unnamed
> > or
> > set cb=unnamedplus
> > but it fails to work for
> > set cb=unnamed,unnamedplus
>
> ok, try this:
> diff --git a/src/ops.c b/src/ops.c
> --- a/src/ops.c
> +++ b/src/ops.c
> @@ -1722,8 +1722,13 @@
>
> /* Yank into small delete register when no register specified and the
> * delete is within one line. */
> - if (oap->regname == 0 && oap->motion_type != MLINE
> - && oap->line_count == 1)
> + if ((
> +#ifdef FEAT_CLIPBOARD
> + (clip_unnamed & CLIP_UNNAMED && oap->regname == '*') ||
> + (clip_unnamed & CLIP_UNNAMED_PLUS && oap->regname == '+') ||
> +#endif
> + oap->regname == 0)
> + && oap->motion_type != MLINE && oap->line_count == 1)
> {
> oap->regname = '-';
> get_yank_register(oap->regname, TRUE);
>
>
> > I found that yanking is also affected.
>
> I don't understand, register '-' is only used, when deleting within a line.
ups, didn't know that!
>
> regards,
> Christian
I don't see a difference between this patch and the previous one.
Best,
Marcin
--
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