summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-30 22:11:21 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-30 22:11:21 +0100
commitb70a47b77414273755c541f1378ca50966e5ef16 (patch)
treeb3dd98355a259ef300764a8efafd6e5eb9a3c944
parent8662189736e6cefb3fe852728adb5341f83973cf (diff)
downloadvim-git-b70a47b77414273755c541f1378ca50966e5ef16.tar.gz
patch 8.1.1096: MS-Windows: cannot distinguish BS and CTRL-Hv8.1.1096
Problem: MS-Windows: cannot distinguish BS and CTRL-H. Solution: Add code for VK_BACK. (Linwei, closes #1833)
-rw-r--r--src/os_win32.c4
-rw-r--r--src/term.c1
-rw-r--r--src/version.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index c0d6ad77b..e5e75005f 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -882,6 +882,7 @@ static const struct
{ VK_NEXT, TRUE, 'Q', '\322', 'v', '\323', }, // PgDn
{ VK_INSERT,TRUE, 'R', '\324', '\325', '\326', },
{ VK_DELETE,TRUE, 'S', '\327', '\330', '\331', },
+ { VK_BACK, TRUE, 'x', 'y', 'z', '{', }, // Backspace
{ VK_SNAPSHOT,TRUE, 0, 0, 0, 'r', }, // PrtScrn
@@ -911,8 +912,7 @@ static const struct
{ VK_NUMPAD7,TRUE, '\366', '\367', '\370', '\371', },
{ VK_NUMPAD8,TRUE, '\372', '\373', '\374', '\375', },
// Sorry, out of number space! <negri>
- { VK_NUMPAD9,TRUE, '\376', '\377', '\377', '\367', },
-
+ { VK_NUMPAD9,TRUE, '\376', '\377', '|', '}', },
};
diff --git a/src/term.c b/src/term.c
index c05817181..ffc988483 100644
--- a/src/term.c
+++ b/src/term.c
@@ -663,6 +663,7 @@ static struct builtin_term builtin_termcaps[] =
{K_K7, "\316\366"},
{K_K8, "\316\372"},
{K_K9, "\316\376"},
+ {K_BS, "\316x"},
# endif
# if defined(VMS) || defined(ALL_BUILTIN_TCAPS)
diff --git a/src/version.c b/src/version.c
index 3e675fcde..792afeada 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1096,
+/**/
1095,
/**/
1094,