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