1
0
forked from aniani/vim

updated for version 7.3.405

Problem:    When xterm gets back the function keys it may delete the urxvt
            mouse termcap code.
Solution:   Check for the whole code, not just the start. (Egmont Koblinger)
This commit is contained in:
Bram Moolenaar
2012-01-20 17:15:51 +01:00
parent 6d6cec8375
commit 5af7d71276
4 changed files with 17 additions and 3 deletions

View File

@@ -5252,12 +5252,12 @@ find_term_bykeys(src)
char_u *src;
{
int i;
int slen;
int slen = STRLEN(src);
for (i = 0; i < tc_len; ++i)
{
slen = termcodes[i].len;
if (slen > 1 && STRNCMP(termcodes[i].code, src, (size_t)slen) == 0)
if (slen == termcodes[i].len
&& STRNCMP(termcodes[i].code, src, (size_t)slen) == 0)
return i;
}
return -1;