patch 9.1.0660: MS-Windows: Shift-Insert does work on old conhost Commit: https://github.com/vim/vim/commit/f5f69e8663db65567deb028c1d8e102a9c03ae55 Author: Christopher Plewright <ch...@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 <ch...@createng.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/os_win32.c b/src/os_win32.c index eeb3b4716..44d92c0f4 100644 --- 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; diff --git a/src/version.c b/src/version.c index ef2f542e5..13167ab9d 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 660, /**/ 659, /**/ -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1safl1-00Eynq-6H%40256bit.org.