patch 9.1.2057: copying to clipboard register broken with 'go-P'

Problem:  Copying to clipboard register broken with 'go-P'
          (Coacher)
Solution: Verify that clip_plus is available (Foxe Chen).

fixes:  #19072
closes: #19097

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Foxe Chen
2026-01-06 11:54:40 +00:00
committed by Christian Brabandt
parent 254f844dda
commit 4157787be8
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -1154,7 +1154,8 @@ end_visual_mode_keep_button(void)
// we need to paste it somewhere while we still own the selection.
// Only do this when the clipboard is already owned. Don't want to grab
// the selection when hitting ESC.
if (clip_star.available && clip_star.owned)
if ((clip_star.available && clip_star.owned)
|| (clip_plus.available && clip_plus.owned))
clip_auto_select();
# if defined(FEAT_EVAL)
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2057,
/**/
2056,
/**/