forked from aniani/vim
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.
This commit is contained in:
@@ -3259,8 +3259,8 @@ op_yank(oparg_T *oap, int deleting, int mess)
|
|||||||
|
|
||||||
clip_own_selection(&clip_plus);
|
clip_own_selection(&clip_plus);
|
||||||
clip_gen_set_selection(&clip_plus);
|
clip_gen_set_selection(&clip_plus);
|
||||||
if (!clip_isautosel_star() && !did_star
|
if (!clip_isautosel_star() && !clip_isautosel_plus()
|
||||||
&& curr == &(y_regs[PLUS_REGISTER]))
|
&& !did_star && curr == &(y_regs[PLUS_REGISTER]))
|
||||||
{
|
{
|
||||||
copy_yank_reg(&(y_regs[STAR_REGISTER]));
|
copy_yank_reg(&(y_regs[STAR_REGISTER]));
|
||||||
clip_own_selection(&clip_star);
|
clip_own_selection(&clip_star);
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1199,
|
||||||
/**/
|
/**/
|
||||||
1198,
|
1198,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user