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.4 / 7.4.359 < prev    next >
Encoding:
Internet Message Format  |  2014-07-08  |  2.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.359
  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.4.359
  11. Problem:    When 'ttymouse' is set to 'uxterm' the xterm version is not
  12.         requested. (Tomas Janousek)
  13. Solution:   Do not mark uxterm as a conflict mouse and add
  14.         resume_get_esc_sequence().
  15. Files:        src/term.c, src/os_unix.c, src/proto/term.pro
  16.  
  17.  
  18. *** ../vim-7.4.358/src/term.c    2014-05-22 21:22:15.361995652 +0200
  19. --- src/term.c    2014-07-09 18:49:57.127730739 +0200
  20. ***************
  21. *** 3330,3335 ****
  22. --- 3330,3348 ----
  23.       return crv_status == CRV_SENT || u7_status == U7_SENT
  24.                           || xt_index_out > xt_index_in;
  25.   }
  26. + /*
  27. +  * If requesting the version was disabled in did_request_esc_sequence(),
  28. +  * enable it again.
  29. +  */
  30. +     void
  31. + resume_get_esc_sequence()
  32. + {
  33. +     if (crv_status == 0)
  34. +     crv_status = CRV_GET;
  35. +     if (u7_status == 0)
  36. +     u7_status = U7_GET;
  37. + }
  38.   # endif
  39.   
  40.   
  41. *** ../vim-7.4.358/src/os_unix.c    2014-05-22 21:22:15.361995652 +0200
  42. --- src/os_unix.c    2014-07-09 18:56:58.483722175 +0200
  43. ***************
  44. *** 3780,3788 ****
  45.   # ifdef FEAT_MOUSE_URXVT
  46.       /* same as the dec mouse */
  47.       if (use_xterm_mouse() == 3
  48. - #  ifdef FEAT_TERMRESPONSE
  49. -         && !did_request_esc_sequence()
  50. - #  endif
  51.   #  ifdef FEAT_GUI
  52.           && !gui.in_use
  53.   #  endif
  54. --- 3780,3785 ----
  55. ***************
  56. *** 3797,3803 ****
  57.           mch_setmouse(FALSE);
  58.           setmouse();
  59.       }
  60. !     xterm_conflict_mouse = TRUE;
  61.       }
  62.       else
  63.       del_mouse_termcode(KS_URXVT_MOUSE);
  64. --- 3794,3801 ----
  65.           mch_setmouse(FALSE);
  66.           setmouse();
  67.       }
  68. !     /* It's OK to request the xterm version for uxterm. */
  69. !     resume_get_esc_sequence();
  70.       }
  71.       else
  72.       del_mouse_termcode(KS_URXVT_MOUSE);
  73. *** ../vim-7.4.358/src/proto/term.pro    2014-05-22 18:14:27.570224664 +0200
  74. --- src/proto/term.pro    2014-07-09 18:53:31.827726375 +0200
  75. ***************
  76. *** 35,40 ****
  77. --- 35,41 ----
  78.   void starttermcap __ARGS((void));
  79.   void stoptermcap __ARGS((void));
  80.   int did_request_esc_sequence __ARGS((void));
  81. + void resume_get_esc_sequence __ARGS((void));
  82.   void may_req_termresponse __ARGS((void));
  83.   void may_req_ambiguous_char_width __ARGS((void));
  84.   int swapping_screen __ARGS((void));
  85. *** ../vim-7.4.358/src/version.c    2014-07-09 17:51:46.075801693 +0200
  86. --- src/version.c    2014-07-09 18:50:55.515729552 +0200
  87. ***************
  88. *** 736,737 ****
  89. --- 736,739 ----
  90.   {   /* Add new patch number below this line */
  91. + /**/
  92. +     359,
  93.   /**/
  94.  
  95. -- 
  96. An indication you must be a manager:
  97. You give constructive feedback to your dog.
  98.  
  99.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  100. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  101. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  102.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  103.