From: Bram Moolenaar <Bram@vim.org>
Date: Wed, 30 Nov 2011 13:47:15 +0000 (+0100)
Subject: updated for version 7.3.358
X-Git-Tag: v7.3.358
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b491c03ee7757ebefc346a856daa21e34c2f576d;p=vim

updated for version 7.3.358
Problem:    Mouse support doesn't work properly.
Solution:   Add HMT_URXVT. (lilydjwg, James McCoy)
---

diff --git a/src/term.c b/src/term.c
index 3fab538f8..6e3400bd1 100644
--- a/src/term.c
+++ b/src/term.c
@@ -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
diff --git a/src/version.c b/src/version.c
index 2e3922e97..fe867ba15 100644
--- a/src/version.c
+++ b/src/version.c
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    358,
 /**/
     357,
 /**/