]> granicus.if.org Git - vim/commitdiff
patch 8.1.1096: MS-Windows: cannot distinguish BS and CTRL-H v8.1.1096
authorBram Moolenaar <Bram@vim.org>
Sat, 30 Mar 2019 21:11:21 +0000 (22:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 30 Mar 2019 21:11:21 +0000 (22:11 +0100)
Problem:    MS-Windows: cannot distinguish BS and CTRL-H.
Solution:   Add code for VK_BACK. (Linwei, closes #1833)

src/os_win32.c
src/term.c
src/version.c

index c0d6ad77bddc3dc937b0f3ca3b1e6c1998ed50ca..e5e75005f831e98aa00eb6a6b9af05171b0c547f 100644 (file)
@@ -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', '|',        '}', },
 };
 
 
index c058171814e04557d7cd963d5986c9d551f4cbf9..ffc988483c4e942bd08e9cd9b26a530d500c4eb2 100644 (file)
@@ -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)
index 3e675fcdea27d7be98f6f810c8ccf9a57887c5df..792afeada2cbdee172d0432f113ff899da45bdb9 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1096,
 /**/
     1095,
 /**/