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

Commit: 
https://github.com/vim/vim/commit/4157787be8a3f8410c114e37c190e8e73ad16a2e
Author: Foxe Chen <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vd5jH-00GsNw-SS%40256bit.org.

Raspunde prin e-mail lui