0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

updated for version 7.3.358

Problem:    Mouse support doesn't work properly.
Solution:   Add HMT_URXVT. (lilydjwg, James McCoy)
This commit is contained in:
Bram Moolenaar
2011-11-30 14:47:15 +01:00
parent 26fdd7da96
commit b491c03ee7
2 changed files with 13 additions and 0 deletions

View File

@@ -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
@@ -2030,6 +2031,11 @@ set_mouse_termcode(n, s)
if (n == KS_PTERM_MOUSE)
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
@@ -2067,6 +2073,11 @@ del_mouse_termcode(n)
if (n == KS_PTERM_MOUSE)
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

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
358,
/**/
357,
/**/