Karsten Hopp 5241c5
To: vim_dev@googlegroups.com
Karsten Hopp 5241c5
Subject: Patch 7.3.358
Karsten Hopp 5241c5
Fcc: outbox
Karsten Hopp 5241c5
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5241c5
Mime-Version: 1.0
Karsten Hopp 5241c5
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5241c5
Content-Transfer-Encoding: 8bit
Karsten Hopp 5241c5
------------
Karsten Hopp 5241c5
Karsten Hopp 5241c5
Patch 7.3.358 (after 7.3.353)
Karsten Hopp 5241c5
Problem:    Mouse support doesn't work properly.
Karsten Hopp 5241c5
Solution:   Add HMT_URXVT. (lilydjwg, James McCoy)
Karsten Hopp 5241c5
Files:	    src/term.c
Karsten Hopp 5241c5
Karsten Hopp 5241c5
Karsten Hopp 5241c5
*** ../vim-7.3.357/src/term.c	2011-10-26 23:48:17.000000000 +0200
Karsten Hopp 5241c5
--- src/term.c	2011-11-30 14:42:22.000000000 +0100
Karsten Hopp 5241c5
***************
Karsten Hopp 5241c5
*** 1996,2001 ****
Karsten Hopp 5241c5
--- 1996,2002 ----
Karsten Hopp 5241c5
  #  define HMT_DEC	4
Karsten Hopp 5241c5
  #  define HMT_JSBTERM	8
Karsten Hopp 5241c5
  #  define HMT_PTERM	16
Karsten Hopp 5241c5
+ #  define HMT_URXVT	32
Karsten Hopp 5241c5
  static int has_mouse_termcode = 0;
Karsten Hopp 5241c5
  # endif
Karsten Hopp 5241c5
  
Karsten Hopp 5241c5
***************
Karsten Hopp 5241c5
*** 2031,2036 ****
Karsten Hopp 5241c5
--- 2032,2042 ----
Karsten Hopp 5241c5
  	has_mouse_termcode |= HMT_PTERM;
Karsten Hopp 5241c5
      else
Karsten Hopp 5241c5
  #   endif
Karsten Hopp 5241c5
+ #   ifdef FEAT_MOUSE_URXVT
Karsten Hopp 5241c5
+     if (n == KS_URXVT_MOUSE)
Karsten Hopp 5241c5
+ 	has_mouse_termcode |= HMT_URXVT;
Karsten Hopp 5241c5
+     else
Karsten Hopp 5241c5
+ #   endif
Karsten Hopp 5241c5
  	has_mouse_termcode |= HMT_NORMAL;
Karsten Hopp 5241c5
  #  endif
Karsten Hopp 5241c5
  }
Karsten Hopp 5241c5
***************
Karsten Hopp 5241c5
*** 2068,2073 ****
Karsten Hopp 5241c5
--- 2074,2084 ----
Karsten Hopp 5241c5
  	has_mouse_termcode &= ~HMT_PTERM;
Karsten Hopp 5241c5
      else
Karsten Hopp 5241c5
  #   endif
Karsten Hopp 5241c5
+ #   ifdef FEAT_MOUSE_URXVT
Karsten Hopp 5241c5
+     if (n == KS_URXVT_MOUSE)
Karsten Hopp 5241c5
+ 	has_mouse_termcode &= ~HMT_URXVT;
Karsten Hopp 5241c5
+     else
Karsten Hopp 5241c5
+ #   endif
Karsten Hopp 5241c5
  	has_mouse_termcode &= ~HMT_NORMAL;
Karsten Hopp 5241c5
  #  endif
Karsten Hopp 5241c5
  }
Karsten Hopp 5241c5
*** ../vim-7.3.357/src/version.c	2011-11-30 13:42:40.000000000 +0100
Karsten Hopp 5241c5
--- src/version.c	2011-11-30 14:45:06.000000000 +0100
Karsten Hopp 5241c5
***************
Karsten Hopp 5241c5
*** 716,717 ****
Karsten Hopp 5241c5
--- 716,719 ----
Karsten Hopp 5241c5
  {   /* Add new patch number below this line */
Karsten Hopp 5241c5
+ /**/
Karsten Hopp 5241c5
+     358,
Karsten Hopp 5241c5
  /**/
Karsten Hopp 5241c5
Karsten Hopp 5241c5
-- 
Karsten Hopp 5241c5
I noticed my daughter's Disney-net password on a sticky note:
Karsten Hopp 5241c5
"MickeyMinnieGoofyPluto".  I asked her why it was so long.
Karsten Hopp 5241c5
"Because they say it has to have at least four characters."
Karsten Hopp 5241c5
Karsten Hopp 5241c5
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5241c5
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5241c5
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5241c5
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///