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.
diff --git a/src/ops.c b/src/ops.c
index 6fb6947..e366903 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3259,8 +3259,8 @@
clip_own_selection(&clip_plus);
clip_gen_set_selection(&clip_plus);
- if (!clip_isautosel_star() && !did_star
- && curr == &(y_regs[PLUS_REGISTER]))
+ if (!clip_isautosel_star() && !clip_isautosel_plus()
+ && !did_star && curr == &(y_regs[PLUS_REGISTER]))
{
copy_yank_reg(&(y_regs[STAR_REGISTER]));
clip_own_selection(&clip_star);
diff --git a/src/version.c b/src/version.c
index 0fbb99e..5baff48 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1199,
+/**/
1198,
/**/
1197,