]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0660: MS-Windows: Shift-Insert does work on old conhost v9.1.0660
authorChristopher Plewright <chris@createng.com>
Sun, 4 Aug 2024 17:57:44 +0000 (19:57 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 4 Aug 2024 17:57:44 +0000 (19:57 +0200)
Problem:  MS-Windows: Shift-Insert does not work on old conhost
          (Nick Jensen, after 9.0.1146)
Solution: handle Shift-Insert specifically
          (Christian Plewright)

fixes: #15326
closes: #15430

Signed-off-by: Christopher Plewright <chris@createng.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/os_win32.c
src/version.c

index eeb3b47166364cf97de34a4ee50326258b7c8a2d..44d92c0f4ab98d2428a63130400382b4b3c55d2b 100644 (file)
@@ -1264,6 +1264,13 @@ decode_key_event(
                                }
                            }
                        }
+                       else if (pker->wVirtualKeyCode == VK_INSERT
+                                       && (nModifs & SHIFT) != 0
+                                       && (nModifs & ~SHIFT) == 0)
+                       {
+                           *pmodifiers = 0;
+                           *pch2 = VirtKeyMap[i].chShift;
+                       }
                        else
                        {
                            *pch2 = VirtKeyMap[i].chAlone;
index ef2f542e51f9e2247086f2c0743983837c107cb5..13167ab9d3eccec0b3e17904ae033ed8d1ac5a33 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    660,
 /**/
     659,
 /**/