home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.699 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.5 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.699
  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.699
  11. Problem:    When 'ttymouse' is set to "sgr" manually, it is overruled by
  12.             automatic detection.
  13. Solution:   Do not use automatic detection when 'ttymouse' was set manually.
  14.             (Hayaki Saito)
  15. Files:      src/term.c
  16.  
  17.  
  18. *** ../vim-7.3.698/src/term.c    2012-08-29 16:26:01.000000000 +0200
  19. --- src/term.c    2012-10-21 02:07:25.000000000 +0200
  20. ***************
  21. *** 4079,4102 ****
  22.   
  23.               if (tp[1 + (tp[0] != CSI)] == '>' && j == 2)
  24.               {
  25.   # ifdef TTYM_SGR
  26. !             if (extra >= 277
  27. ! # ifdef TTYM_URXVT
  28. !                 && ttym_flags != TTYM_URXVT
  29. ! # endif
  30. !                 )
  31. !                 set_option_value((char_u *)"ttym", 0L,
  32.                                 (char_u *)"sgr", 0);
  33. !                         else
  34.   # endif
  35. !             /* if xterm version >= 95 use mouse dragging */
  36. !             if (extra >= 95
  37. ! # ifdef TTYM_URXVT
  38. !                 && ttym_flags != TTYM_URXVT
  39. ! # endif
  40. !                 )
  41. !                 set_option_value((char_u *)"ttym", 0L,
  42.                                  (char_u *)"xterm2", 0);
  43.               /* if xterm version >= 141 try to get termcap codes */
  44.               if (extra >= 141)
  45.               {
  46. --- 4079,4100 ----
  47.   
  48.               if (tp[1 + (tp[0] != CSI)] == '>' && j == 2)
  49.               {
  50. +             /* Only set 'ttymouse' automatically if it was not set
  51. +              * by the user already. */
  52. +             if (!option_was_set((char_u *)"ttym"))
  53. +             {
  54.   # ifdef TTYM_SGR
  55. !                 if (extra >= 277)
  56. !                 set_option_value((char_u *)"ttym", 0L,
  57.                                 (char_u *)"sgr", 0);
  58. !                 else
  59.   # endif
  60. !                 /* if xterm version >= 95 use mouse dragging */
  61. !                 if (extra >= 95)
  62. !                 set_option_value((char_u *)"ttym", 0L,
  63.                                  (char_u *)"xterm2", 0);
  64. +             }
  65.               /* if xterm version >= 141 try to get termcap codes */
  66.               if (extra >= 141)
  67.               {
  68. *** ../vim-7.3.698/src/version.c    2012-10-21 01:46:56.000000000 +0200
  69. --- src/version.c    2012-10-21 02:09:17.000000000 +0200
  70. ***************
  71. *** 721,722 ****
  72. --- 721,724 ----
  73.   {   /* Add new patch number below this line */
  74. + /**/
  75. +     699,
  76.   /**/
  77.  
  78. -- 
  79. Never under any circumstances take a sleeping pill
  80. and a laxative on the same night.
  81.  
  82.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  83. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  84. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  85.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  86.