Skip to content

Commit 8bfe07b

Browse files
committed
patch 8.0.1199: when 'clipboard' is "autoselectplus" star register is set
Problem: When 'clipboard' is "autoselectplus" the star register is also set. (Gilles Moris) Solution: Don't set the star register in this situation.
1 parent 00ce63d commit 8bfe07b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/ops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3259,8 +3259,8 @@ op_yank(oparg_T *oap, int deleting, int mess)
32593259

32603260
clip_own_selection(&clip_plus);
32613261
clip_gen_set_selection(&clip_plus);
3262-
if (!clip_isautosel_star() && !did_star
3263-
&& curr == &(y_regs[PLUS_REGISTER]))
3262+
if (!clip_isautosel_star() && !clip_isautosel_plus()
3263+
&& !did_star && curr == &(y_regs[PLUS_REGISTER]))
32643264
{
32653265
copy_yank_reg(&(y_regs[STAR_REGISTER]));
32663266
clip_own_selection(&clip_star);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1199,
764766
/**/
765767
1198,
766768
/**/

0 commit comments

Comments
 (0)