1
0
forked from aniani/vim

patch 8.0.1577: virtual replace test fails on MS-Windows

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.
This commit is contained in:
Bram Moolenaar
2018-03-06 13:17:23 +01:00
parent 16896a1019
commit e780848150
3 changed files with 8 additions and 1 deletions

View File

@@ -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)