Hayaki Saito wrote:

> By Patch 7.3.699, this line was added.
> 
> > +                   if (!option_was_set((char_u *)"ttym"))
> 
> With this condition clause, The ttymouse automatic detection behavior that 
> had been detected as "xterm2", also seems to be changed.
> In .vimrc, If we set mouse=a and don't set any value to "ttymouse", this 
> change is found out.
> In this case, former vim sets "xterm2" to ttymouse, but new one sets "xterm".
> 
> This change affects some terminal emulators that report Pv value(xterm 
> version) in the specific range(that is more than 95, and less than 20000), 
> ageinst DA2 query,
> such as xterm, gnome-terminal, konsole, mlterm, iTerm2, tmux ... etc.
> 
> Is this the intended behavior?

It works correctly for me, setting 'ttymouse' to "sgr" automatically.
Perhaps your combinations of features is different?  There is one other
call to set 'ttymouse', if that somehow happens first then it won't be
set again.  For a quick check you can comment out these lines in term.c:

        if (p != NULL)
            set_option_value((char_u *)"ttym", 0L, p, 0);

If that works, then try:

        if (p != NULL && *p != NUL)
            set_option_value((char_u *)"ttym", 0L, p, 0);


-- 
>From "know your smileys":
 %      Bike accident.  A bit far-fetched, I suppose; although...
             o      _     _         _
     _o     /\_   _ \\o  (_)\__/o  (_)
   _< \_   _>(_) (_)/<_    \_| \   _|/' \/
  (_)>(_) (_)        (_)   (_)    (_)'  _\o_

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui