> On Sat, May 11, 2019 at 01:10:04PM +0200, Bram Moolenaar wrote:
> > 
> > > On Fri, May 10, 2019 at 09:57:09PM +0200, Bram Moolenaar wrote:
> > > > > git bisect finds this. However I tried again and it finds 1265. 
> > > > > Perhaps
> > > > > I need to clean the workspace between each run. So I tried again and 
> > > > > it
> > > > > finds 1265 again. And reverting that patch (including 1-1264, 
> > > > > 1266-1312)
> > > > > the issue is gone.
> > > > > 
> > > > > Also I notice that 'set ttymouse=xterm' restores mouse support, 
> > > > > although
> > > > > it was already xterm.
> > > > 
> > > > Strange.  So, what is broken, how to reproduce?  Start with "vim
> > > > --clean".
> > > 
> > > That's simple:
> > > 
> > > 1. be inside tmux
> > > 2. vim --clean -c 'set mouse=a'
> > > 
> > > The mouse support is not enabled.
> > > 
> > > 3. :set ttymouse=xterm
> > > 
> > > The mouse support is now enabled.
> > > 
> > > tmux 2.9a running inside gnome-terminal 3.32.2 on Arch Linux.
> > > 
> > > This is my vim --version:
> > > 
> > > VIM - Vi IMproved 8.1 (2018 May 18, compiled May  7 2019 19:54:58)
> > > Included patches: 1-1290

[...]

> > I'm using the same mouse features, and for me it does not happen.
> > What is $TERM set to?  It should be "screen" or "tmux".
> 
> weird. It's tmux-256color.
> 
> The following patch will fix the issue:
> 
> diff --git a/src/os_unix.c b/src/os_unix.c
> index a6d1a12d1..d656e298f 100644
> --- a/src/os_unix.c
> +++ b/src/os_unix.c
> @@ -3817,10 +3817,7 @@ check_mouse_termcode(void)
>             && !gui.in_use
>  #  endif
>             )
> -       set_mouse_termcode(KS_GPM_MOUSE,
> -                                     (char_u *)IF_EB("\033MG", ESC_STR 
> "MG"));
> -    else
> -       del_mouse_termcode(KS_GPM_MOUSE);
> +       set_mouse_termcode(KS_MOUSE, (char_u *)IF_EB("\033MG", ESC_STR "MG"));
>  # endif
>  
>  # ifdef FEAT_SYSMOUSE

Thanks for the hint.  I think the actual fix is inside
set_mouse_termcode() and del_mouse_termcode().  Please try again after
the next patch.

-- 
The problem with political jokes is that they get elected.

 /// 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201905111939.x4BJdQLd021686%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui