]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2057: copying to clipboard register broken with 'go-P' v9.1.2057
authorFoxe Chen <chen.foxe@gmail.com>
Tue, 6 Jan 2026 11:54:40 +0000 (11:54 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 Jan 2026 11:54:40 +0000 (11:54 +0000)
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>
src/normal.c
src/version.c

index 2f2a560179bd09574a58338f06d4d640a6dc9b07..3f322933605230919763ead48a6bbdc5aa7768cc 100644 (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)
index ba16b5170105121001778a5ef207aeb12ead0677..e4bee056d84b958af7f48d1ecc9ace7f28a4bc4e 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2057,
 /**/
     2056,
 /**/