summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-03-06 13:17:23 +0100
committerBram Moolenaar <Bram@vim.org>2018-03-06 13:17:23 +0100
commite7808481507b9e11ae73c8f865e95eb2d20f6cc8 (patch)
tree91446665f6f612fb303726bbb87455b50330042d /src/term.c
parent16896a10199572ff05149786868ff402aa8e31ea (diff)
downloadvim-git-e7808481507b9e11ae73c8f865e95eb2d20f6cc8.tar.gz
patch 8.0.1577: virtual replace test fails on MS-Windowsv8.0.1577
Problem: Virtual replace test fails on MS-Windows. Solution: Make adding a termcap entry work for a builtin terminal. Restore terminal keys in a better way.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index 5e7aeecae..622491fb0 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2278,6 +2278,7 @@ add_termcap_entry(char_u *name, int force)
if (termp->bt_string != NULL) /* found it */
{
key = TERMCAP2KEY(name[0], name[1]);
+ ++termp;
while (termp->bt_entry != (int)KS_NAME)
{
if ((int)termp->bt_entry == key)