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

1 view
Skip to first unread message

Christian Brabandt

unread,
Jan 6, 2026, 7:01:07 AM (6 days ago) Jan 6
to vim...@googlegroups.com
patch 9.1.2057: copying to clipboard register broken with 'go-P'

Commit: https://github.com/vim/vim/commit/4157787be8a3f8410c114e37c190e8e73ad16a2e
Author: Foxe Chen <chen...@gmail.com>
Date: Tue Jan 6 11:54:40 2026 +0000

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...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/normal.c b/src/normal.c
index 2f2a56017..3f3229336 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -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)
diff --git a/src/version.c b/src/version.c
index ba16b5170..e4bee056d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2057,
/**/
2056,
/**/
Reply all
Reply to author
Forward
0 new messages