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
10 Patch 7.3.353 (after 7.3.343)
11 Problem: Missing part of the urxvt patch.
12 Solution: Add the change in term.c
16 *** ../vim-7.3.352/src/term.c 2011-09-14 14:43:21.000000000 +0200
17 --- src/term.c 2011-10-26 23:48:01.000000000 +0200
22 #ifdef FEAT_TERMRESPONSE
23 ! if (key_name[0] == NUL)
25 /* Check for xterm version string: "<Esc>[>{x};{vers};{y}c". Also
26 * eat other possible responses to t_RV, rxvt returns
30 #ifdef FEAT_TERMRESPONSE
31 ! if (key_name[0] == NUL
32 ! /* URXVT mouse uses <ESC>[#;#;#M, but we are matching <ESC>[ */
33 ! || key_name[0] == KS_URXVT_MOUSE)
35 /* Check for xterm version string: "<Esc>[>{x};{vers};{y}c". Also
36 * eat other possible responses to t_RV, rxvt returns
39 if (tp[1 + (tp[0] != CSI)] == '>' && j == 2)
41 /* if xterm version >= 95 use mouse dragging */
43 set_option_value((char_u *)"ttym", 0L,
44 (char_u *)"xterm2", 0);
45 /* if xterm version >= 141 try to get termcap codes */
47 if (tp[1 + (tp[0] != CSI)] == '>' && j == 2)
49 /* if xterm version >= 95 use mouse dragging */
50 ! if (extra >= 95 && ttym_flags != TTYM_URXVT)
51 set_option_value((char_u *)"ttym", 0L,
52 (char_u *)"xterm2", 0);
53 /* if xterm version >= 141 try to get termcap codes */
57 # ifdef FEAT_MOUSE_PTERM
58 || key_name[0] == (int)KS_PTERM_MOUSE
60 + # ifdef FEAT_MOUSE_URXVT
61 + || key_name[0] == (int)KS_URXVT_MOUSE
65 is_click = is_drag = FALSE;
74 + # ifdef FEAT_MOUSE_URXVT
75 + if (key_name[0] == (int)KS_URXVT_MOUSE)
79 + /* URXVT 1015 mouse reporting mode:
80 + * Almost identical to xterm mouse mode, except the values
81 + * are decimal instead of bytes.
90 + mouse_code = getdigits(&p);
94 + mouse_col = getdigits(&p) - 1;
98 + mouse_row = getdigits(&p) - 1;
102 + slen += (int)(p - (tp + slen));
104 + /* skip this one if next one has same code (like xterm
106 + j = termcodes[idx].len;
107 + if (STRNCMP(tp, tp + slen, (size_t)j) == 0) {
108 + /* check if the command is complete by looking for the
111 + int cmd_complete = 0;
112 + for (slen2 = slen; slen2 < len; slen2++) {
113 + if (tp[slen2] == 'M') {
119 + if (cmd_complete && getdigits(&p) == mouse_code) {
120 + slen += j; /* skip the \033[ */
129 + if (key_name[0] == (int)KS_MOUSE
130 + #ifdef FEAT_MOUSE_URXVT
131 + || key_name[0] == (int)KS_URXVT_MOUSE
135 # if !defined(MSWIN) && !defined(MSDOS)
137 * Handle mouse events.
138 *** ../vim-7.3.352/src/version.c 2011-10-26 22:02:10.000000000 +0200
139 --- src/version.c 2011-10-26 23:43:26.000000000 +0200
143 { /* Add new patch number below this line */
149 hundred-and-one symptoms of being an internet addict:
150 99. The hum of a cooling fan and the click of keys is comforting to you.
152 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
153 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
154 \\\ an exciting new programming language -- http://www.Zimbu.org ///
155 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///