Skip to content

Commit 4157787

Browse files
64-bitmanchrisbra
authored andcommitted
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>
1 parent 254f844 commit 4157787

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/normal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,8 @@ end_visual_mode_keep_button(void)
11541154
// we need to paste it somewhere while we still own the selection.
11551155
// Only do this when the clipboard is already owned. Don't want to grab
11561156
// the selection when hitting ESC.
1157-
if (clip_star.available && clip_star.owned)
1157+
if ((clip_star.available && clip_star.owned)
1158+
|| (clip_plus.available && clip_plus.owned))
11581159
clip_auto_select();
11591160

11601161
# if defined(FEAT_EVAL)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2057,
737739
/**/
738740
2056,
739741
/**/

0 commit comments

Comments
 (0)