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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user