diff options
author | Bram Moolenaar <bram@vim.org> | 2011-11-30 14:47:15 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2011-11-30 14:47:15 +0100 |
commit | 0895bf2fdc2519c161569a15aa3f136926a987c9 (patch) | |
tree | 511552c6b343c11805a3854cd593e454b9fffdd9 /src | |
parent | 22fe654807d04e84b4d7846ef54c0070046db92a (diff) | |
download | vim-0895bf2fdc2519c161569a15aa3f136926a987c9.tar.gz |
Problem: Mouse support doesn't work properly.
Solution: Add HMT_URXVT. (lilydjwg, James McCoy)
Diffstat (limited to 'src')
-rw-r--r-- | src/term.c | 11 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 13 insertions, 0 deletions
@@ -1996,6 +1996,7 @@ set_termname(term) # define HMT_DEC 4 # define HMT_JSBTERM 8 # define HMT_PTERM 16 +# define HMT_URXVT 32 static int has_mouse_termcode = 0; # endif @@ -2031,6 +2032,11 @@ set_mouse_termcode(n, s) has_mouse_termcode |= HMT_PTERM; else # endif +# ifdef FEAT_MOUSE_URXVT + if (n == KS_URXVT_MOUSE) + has_mouse_termcode |= HMT_URXVT; + else +# endif has_mouse_termcode |= HMT_NORMAL; # endif } @@ -2068,6 +2074,11 @@ del_mouse_termcode(n) has_mouse_termcode &= ~HMT_PTERM; else # endif +# ifdef FEAT_MOUSE_URXVT + if (n == KS_URXVT_MOUSE) + has_mouse_termcode &= ~HMT_URXVT; + else +# endif has_mouse_termcode &= ~HMT_NORMAL; # endif } diff --git a/src/version.c b/src/version.c index 2e3922e9..fe867ba1 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 358, +/**/ 357, /**/ 356, |