@@ -519,8 +519,10 @@ update_screen(type)
519519# endif
520520# ifdef FEAT_CLIPBOARD
521521 /* When Visual area changed, may have to update selection. */
522- if (clip_star .available && clip_isautosel ())
523- clip_update_selection ();
522+ if (clip_star .available && clip_isautosel_star ())
523+ clip_update_selection (& clip_star );
524+ if (clip_plus .available && clip_isautosel_plus ())
525+ clip_update_selection (& clip_plus );
524526# endif
525527#ifdef FEAT_GUI
526528 /* Remove the cursor before starting to do anything, because
@@ -814,8 +816,10 @@ updateWindow(wp)
814816
815817#ifdef FEAT_CLIPBOARD
816818 /* When Visual area changed, may have to update selection. */
817- if (clip_star .available && clip_isautosel ())
818- clip_update_selection ();
819+ if (clip_star .available && clip_isautosel_star ())
820+ clip_update_selection (& clip_star );
821+ if (clip_plus .available && clip_isautosel_plus ())
822+ clip_update_selection (& clip_plus );
819823#endif
820824
821825 win_update (wp );
@@ -3000,7 +3004,10 @@ win_line(wp, lnum, startrow, endrow, nochange)
30003004 area_highlighting = TRUE;
30013005 attr = hl_attr (HLF_V );
30023006#if defined(FEAT_CLIPBOARD ) && defined(FEAT_X11 )
3003- if (clip_star .available && !clip_star .owned && clip_isautosel ())
3007+ if ((clip_star .available && !clip_star .owned
3008+ && clip_isautosel_star ())
3009+ || (clip_plus .available && !clip_plus .owned
3010+ && clip_isautosel_plus ()))
30043011 attr = hl_attr (HLF_VNC );
30053012#endif
30063013 }
@@ -9060,7 +9067,7 @@ screen_ins_lines(off, row, line_count, end, wp)
90609067 || (wp != NULL && wp -> w_width != Columns )
90619068# endif
90629069 )
9063- clip_clear_selection ();
9070+ clip_clear_selection (& clip_star );
90649071 else
90659072 clip_scroll_selection (- line_count );
90669073#endif
@@ -9281,7 +9288,7 @@ screen_del_lines(off, row, line_count, end, force, wp)
92819288 || (wp != NULL && wp -> w_width != Columns )
92829289# endif
92839290 )
9284- clip_clear_selection ();
9291+ clip_clear_selection (& clip_star );
92859292 else
92869293 clip_scroll_selection (line_count );
92879294#endif
0 commit comments