1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: When xterm gets back the function keys it may delete the urxvt
13 Solution: Check for the whole code, not just the start. (Egmont Koblinger)
14 Files: src/keymap.h, src/misc2.c, src/term.c
17 *** ../vim-7.3.404/src/keymap.h 2011-10-20 21:09:25.000000000 +0200
18 --- src/keymap.h 2012-01-20 16:35:43.000000000 +0100
22 #define K_DEC_MOUSE TERMCAP2KEY(KS_DEC_MOUSE, KE_FILLER)
23 #define K_JSBTERM_MOUSE TERMCAP2KEY(KS_JSBTERM_MOUSE, KE_FILLER)
24 #define K_PTERM_MOUSE TERMCAP2KEY(KS_PTERM_MOUSE, KE_FILLER)
25 + #define K_URXVT_MOUSE TERMCAP2KEY(KS_URXVT_MOUSE, KE_FILLER)
27 #define K_SELECT TERMCAP2KEY(KS_SELECT, KE_FILLER)
28 #define K_TEAROFF TERMCAP2KEY(KS_TEAROFF, KE_FILLER)
29 *** ../vim-7.3.404/src/misc2.c 2012-01-10 22:26:12.000000000 +0100
30 --- src/misc2.c 2012-01-20 16:38:27.000000000 +0100
34 {'<', (char_u *)"lt"},
36 {K_MOUSE, (char_u *)"Mouse"},
37 + #ifdef FEAT_MOUSE_NET
38 {K_NETTERM_MOUSE, (char_u *)"NetMouse"},
40 + #ifdef FEAT_MOUSE_DEC
41 {K_DEC_MOUSE, (char_u *)"DecMouse"},
43 + #ifdef FEAT_MOUSE_JSB
44 {K_JSBTERM_MOUSE, (char_u *)"JsbMouse"},
46 + #ifdef FEAT_MOUSE_PTERM
47 {K_PTERM_MOUSE, (char_u *)"PtermMouse"},
49 + #ifdef FEAT_MOUSE_URXVT
50 + {K_URXVT_MOUSE, (char_u *)"UrxvtMouse"},
52 {K_LEFTMOUSE, (char_u *)"LeftMouse"},
53 {K_LEFTMOUSE_NM, (char_u *)"LeftMouseNM"},
54 {K_LEFTDRAG, (char_u *)"LeftDrag"},
55 *** ../vim-7.3.404/src/term.c 2011-12-01 20:59:16.000000000 +0100
56 --- src/term.c 2012-01-20 16:50:41.000000000 +0100
64 for (i = 0; i < tc_len; ++i)
66 ! slen = termcodes[i].len;
67 ! if (slen > 1 && STRNCMP(termcodes[i].code, src, (size_t)slen) == 0)
75 ! int slen = STRLEN(src);
77 for (i = 0; i < tc_len; ++i)
79 ! if (slen == termcodes[i].len
80 ! && STRNCMP(termcodes[i].code, src, (size_t)slen) == 0)
84 *** ../vim-7.3.404/src/version.c 2012-01-20 14:32:22.000000000 +0100
85 --- src/version.c 2012-01-20 16:59:47.000000000 +0100
89 { /* Add new patch number below this line */
95 "The future's already arrived - it's just not evenly distributed yet."
98 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
99 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
100 \\\ an exciting new programming language -- http://www.Zimbu.org ///
101 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///