mirror of
https://github.com/vim/vim.git
synced 2025-09-01 21:03:39 -04:00
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:
parent
6d6cec8375
commit
5af7d71276
@ -411,6 +411,7 @@ enum key_extra
|
||||
#define K_DEC_MOUSE TERMCAP2KEY(KS_DEC_MOUSE, KE_FILLER)
|
||||
#define K_JSBTERM_MOUSE TERMCAP2KEY(KS_JSBTERM_MOUSE, KE_FILLER)
|
||||
#define K_PTERM_MOUSE TERMCAP2KEY(KS_PTERM_MOUSE, KE_FILLER)
|
||||
#define K_URXVT_MOUSE TERMCAP2KEY(KS_URXVT_MOUSE, KE_FILLER)
|
||||
|
||||
#define K_SELECT TERMCAP2KEY(KS_SELECT, KE_FILLER)
|
||||
#define K_TEAROFF TERMCAP2KEY(KS_TEAROFF, KE_FILLER)
|
||||
|
11
src/misc2.c
11
src/misc2.c
@ -2416,10 +2416,21 @@ static struct key_name_entry
|
||||
{'<', (char_u *)"lt"},
|
||||
|
||||
{K_MOUSE, (char_u *)"Mouse"},
|
||||
#ifdef FEAT_MOUSE_NET
|
||||
{K_NETTERM_MOUSE, (char_u *)"NetMouse"},
|
||||
#endif
|
||||
#ifdef FEAT_MOUSE_DEC
|
||||
{K_DEC_MOUSE, (char_u *)"DecMouse"},
|
||||
#endif
|
||||
#ifdef FEAT_MOUSE_JSB
|
||||
{K_JSBTERM_MOUSE, (char_u *)"JsbMouse"},
|
||||
#endif
|
||||
#ifdef FEAT_MOUSE_PTERM
|
||||
{K_PTERM_MOUSE, (char_u *)"PtermMouse"},
|
||||
#endif
|
||||
#ifdef FEAT_MOUSE_URXVT
|
||||
{K_URXVT_MOUSE, (char_u *)"UrxvtMouse"},
|
||||
#endif
|
||||
{K_LEFTMOUSE, (char_u *)"LeftMouse"},
|
||||
{K_LEFTMOUSE_NM, (char_u *)"LeftMouseNM"},
|
||||
{K_LEFTDRAG, (char_u *)"LeftDrag"},
|
||||
|
@ -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;
|
||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
405,
|
||||
/**/
|
||||
404,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user