changeset 35905:36adfef4ffb9 v9.1.0660

patch 9.1.0660: MS-Windows: Shift-Insert does work on old conhost Commit: https://github.com/vim/vim/commit/f5f69e8663db65567deb028c1d8e102a9c03ae55 Author: Christopher Plewright <chris@createng.com> Date: Sun Aug 4 19:57:44 2024 +0200 patch 9.1.0660: MS-Windows: Shift-Insert does work on old conhost 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>
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Aug 2024 20:15:03 +0200
parents 22115335ed40
children 80d180a74c48
files src/os_win32.c src/version.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    660,
+/**/
     659,
 /**/
     658,