|
Karsten Hopp |
30230d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
30230d |
Subject: Patch 7.3.699
|
|
Karsten Hopp |
30230d |
Fcc: outbox
|
|
Karsten Hopp |
30230d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
30230d |
Mime-Version: 1.0
|
|
Karsten Hopp |
30230d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
30230d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
30230d |
------------
|
|
Karsten Hopp |
30230d |
|
|
Karsten Hopp |
30230d |
Patch 7.3.699
|
|
Karsten Hopp |
30230d |
Problem: When 'ttymouse' is set to "sgr" manually, it is overruled by
|
|
Karsten Hopp |
30230d |
automatic detection.
|
|
Karsten Hopp |
30230d |
Solution: Do not use automatic detection when 'ttymouse' was set manually.
|
|
Karsten Hopp |
30230d |
(Hayaki Saito)
|
|
Karsten Hopp |
30230d |
Files: src/term.c
|
|
Karsten Hopp |
30230d |
|
|
Karsten Hopp |
30230d |
|
|
Karsten Hopp |
30230d |
*** ../vim-7.3.698/src/term.c 2012-08-29 16:26:01.000000000 +0200
|
|
Karsten Hopp |
30230d |
--- src/term.c 2012-10-21 02:07:25.000000000 +0200
|
|
Karsten Hopp |
30230d |
***************
|
|
Karsten Hopp |
30230d |
*** 4079,4102 ****
|
|
Karsten Hopp |
30230d |
|
|
Karsten Hopp |
30230d |
if (tp[1 + (tp[0] != CSI)] == '>' && j == 2)
|
|
Karsten Hopp |
30230d |
{
|
|
Karsten Hopp |
30230d |
# ifdef TTYM_SGR
|
|
Karsten Hopp |
30230d |
! if (extra >= 277
|
|
Karsten Hopp |
30230d |
! # ifdef TTYM_URXVT
|
|
Karsten Hopp |
30230d |
! && ttym_flags != TTYM_URXVT
|
|
Karsten Hopp |
30230d |
! # endif
|
|
Karsten Hopp |
30230d |
! )
|
|
Karsten Hopp |
30230d |
! set_option_value((char_u *)"ttym", 0L,
|
|
Karsten Hopp |
30230d |
(char_u *)"sgr", 0);
|
|
Karsten Hopp |
30230d |
! else
|
|
Karsten Hopp |
30230d |
# endif
|
|
Karsten Hopp |
30230d |
! /* if xterm version >= 95 use mouse dragging */
|
|
Karsten Hopp |
30230d |
! if (extra >= 95
|
|
Karsten Hopp |
30230d |
! # ifdef TTYM_URXVT
|
|
Karsten Hopp |
30230d |
! && ttym_flags != TTYM_URXVT
|
|
Karsten Hopp |
30230d |
! # endif
|
|
Karsten Hopp |
30230d |
! )
|
|
Karsten Hopp |
30230d |
! set_option_value((char_u *)"ttym", 0L,
|
|
Karsten Hopp |
30230d |
(char_u *)"xterm2", 0);
|
|
Karsten Hopp |
30230d |
/* if xterm version >= 141 try to get termcap codes */
|
|
Karsten Hopp |
30230d |
if (extra >= 141)
|
|
Karsten Hopp |
30230d |
{
|
|
Karsten Hopp |
30230d |
--- 4079,4100 ----
|
|
Karsten Hopp |
30230d |
|
|
Karsten Hopp |
30230d |
if (tp[1 + (tp[0] != CSI)] == '>' && j == 2)
|
|
Karsten Hopp |
30230d |
{
|
|
Karsten Hopp |
30230d |
+ /* Only set 'ttymouse' automatically if it was not set
|
|
Karsten Hopp |
30230d |
+ * by the user already. */
|
|
Karsten Hopp |
30230d |
+ if (!option_was_set((char_u *)"ttym"))
|
|
Karsten Hopp |
30230d |
+ {
|
|
Karsten Hopp |
30230d |
# ifdef TTYM_SGR
|
|
Karsten Hopp |
30230d |
! if (extra >= 277)
|
|
Karsten Hopp |
30230d |
! set_option_value((char_u *)"ttym", 0L,
|
|
Karsten Hopp |
30230d |
(char_u *)"sgr", 0);
|
|
Karsten Hopp |
30230d |
! else
|
|
Karsten Hopp |
30230d |
# endif
|
|
Karsten Hopp |
30230d |
! /* if xterm version >= 95 use mouse dragging */
|
|
Karsten Hopp |
30230d |
! if (extra >= 95)
|
|
Karsten Hopp |
30230d |
! set_option_value((char_u *)"ttym", 0L,
|
|
Karsten Hopp |
30230d |
(char_u *)"xterm2", 0);
|
|
Karsten Hopp |
30230d |
+ }
|
|
Karsten Hopp |
30230d |
+
|
|
Karsten Hopp |
30230d |
/* if xterm version >= 141 try to get termcap codes */
|
|
Karsten Hopp |
30230d |
if (extra >= 141)
|
|
Karsten Hopp |
30230d |
{
|
|
Karsten Hopp |
30230d |
*** ../vim-7.3.698/src/version.c 2012-10-21 01:46:56.000000000 +0200
|
|
Karsten Hopp |
30230d |
--- src/version.c 2012-10-21 02:09:17.000000000 +0200
|
|
Karsten Hopp |
30230d |
***************
|
|
Karsten Hopp |
30230d |
*** 721,722 ****
|
|
Karsten Hopp |
30230d |
--- 721,724 ----
|
|
Karsten Hopp |
30230d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
30230d |
+ /**/
|
|
Karsten Hopp |
30230d |
+ 699,
|
|
Karsten Hopp |
30230d |
/**/
|
|
Karsten Hopp |
30230d |
|
|
Karsten Hopp |
30230d |
--
|
|
Karsten Hopp |
30230d |
Never under any circumstances take a sleeping pill
|
|
Karsten Hopp |
30230d |
and a laxative on the same night.
|
|
Karsten Hopp |
30230d |
|
|
Karsten Hopp |
30230d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
30230d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
30230d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
30230d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|