]>
Commit | Line | Data |
---|---|---|
ae497238 AG |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.358 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.3.358 (after 7.3.353) | |
11 | Problem: Mouse support doesn't work properly. | |
12 | Solution: Add HMT_URXVT. (lilydjwg, James McCoy) | |
13 | Files: src/term.c | |
14 | ||
15 | ||
16 | *** ../vim-7.3.357/src/term.c 2011-10-26 23:48:17.000000000 +0200 | |
17 | --- src/term.c 2011-11-30 14:42:22.000000000 +0100 | |
18 | *************** | |
19 | *** 1996,2001 **** | |
20 | --- 1996,2002 ---- | |
21 | # define HMT_DEC 4 | |
22 | # define HMT_JSBTERM 8 | |
23 | # define HMT_PTERM 16 | |
24 | + # define HMT_URXVT 32 | |
25 | static int has_mouse_termcode = 0; | |
26 | # endif | |
27 | ||
28 | *************** | |
29 | *** 2031,2036 **** | |
30 | --- 2032,2042 ---- | |
31 | has_mouse_termcode |= HMT_PTERM; | |
32 | else | |
33 | # endif | |
34 | + # ifdef FEAT_MOUSE_URXVT | |
35 | + if (n == KS_URXVT_MOUSE) | |
36 | + has_mouse_termcode |= HMT_URXVT; | |
37 | + else | |
38 | + # endif | |
39 | has_mouse_termcode |= HMT_NORMAL; | |
40 | # endif | |
41 | } | |
42 | *************** | |
43 | *** 2068,2073 **** | |
44 | --- 2074,2084 ---- | |
45 | has_mouse_termcode &= ~HMT_PTERM; | |
46 | else | |
47 | # endif | |
48 | + # ifdef FEAT_MOUSE_URXVT | |
49 | + if (n == KS_URXVT_MOUSE) | |
50 | + has_mouse_termcode &= ~HMT_URXVT; | |
51 | + else | |
52 | + # endif | |
53 | has_mouse_termcode &= ~HMT_NORMAL; | |
54 | # endif | |
55 | } | |
56 | *** ../vim-7.3.357/src/version.c 2011-11-30 13:42:40.000000000 +0100 | |
57 | --- src/version.c 2011-11-30 14:45:06.000000000 +0100 | |
58 | *************** | |
59 | *** 716,717 **** | |
60 | --- 716,719 ---- | |
61 | { /* Add new patch number below this line */ | |
62 | + /**/ | |
63 | + 358, | |
64 | /**/ | |
65 | ||
66 | -- | |
67 | I noticed my daughter's Disney-net password on a sticky note: | |
68 | "MickeyMinnieGoofyPluto". I asked her why it was so long. | |
69 | "Because they say it has to have at least four characters." | |
70 | ||
71 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
72 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
73 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
74 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |