updated for version 7.3.597
Problem: 'clipboard' "autoselect" only applies to the * register. (Sergey
Vakulenko)
Solution: Make 'autoselect' work for the + register. (Christian Brabant)
Add the "autoselectplus" option in 'clipboard' and the "P" flag in
'guioptions'.
diff --git a/src/ops.c b/src/ops.c
index 2c054d9..c60f337 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -962,8 +962,14 @@
* selection too. */
if (name == '*' && clip_star.available)
{
- if (clip_isautosel())
- clip_update_selection();
+ if (clip_isautosel_star())
+ clip_update_selection(&clip_star);
+ may_get_selection(name);
+ }
+ if (name == '+' && clip_plus.available)
+ {
+ if (clip_isautosel_plus())
+ clip_update_selection(&clip_plus);
may_get_selection(name);
}
#endif
@@ -3190,7 +3196,8 @@
clip_own_selection(&clip_plus);
clip_gen_set_selection(&clip_plus);
- if (!clip_isautosel() && !did_star && curr == &(y_regs[PLUS_REGISTER]))
+ if (!clip_isautosel_star() && !did_star
+ && curr == &(y_regs[PLUS_REGISTER]))
{
copy_yank_reg(&(y_regs[STAR_REGISTER]));
clip_own_selection(&clip_star);