Christian Brabandt wrote:

> On Do, 02 Nov 2017, Gary Johnson wrote:
> 
> > On 2017-11-02, Gary Johnson wrote:
> > 
> > > So the funny behavior does seem related to the old addressing
> > > style, but why is it happening on an xterm-318 with 'ttymouse'
> > > automatically set to "sgr"?
> > 
> > I tried finding the problem by bisecting the repository and found
> > that my build of 7.4.160 failed, too.  That led me to discover that
> > my normal build was missing the mouse_sgr feature.  I added
> > -DFEAT_MOUSE_SGR to CFLAGS and rebuilt and all is good.
> > 
> > Thanks to James McCoy for directing my attention to SGR.
> 
> So you could `:set ttymouse=sgr` but it didn't work because your vim was 
> build without the FEAT_MOUSE_SGR feature? We should need an error 
> message then, right? Perhaps the attached patch should be included.

Hmm, this may lead to annoying error messages.  Perhaps we can find
something in between: When ttymouse is set to an unspported value from a
script, set it to the nearest supported value.  When manually setting it
to an unsupported value then give an error message.  That way we don't
bother users who know it didn't work, and when someone manually sets
ttymouse to try out what works, he will see the error.  Would that work?


-- 
A programmer's wife asks him: "Please run to the store and pick up a loaf of
bread.  If they have eggs, get a dozen".  The programmer comes home with 12
loafs of bread.

 /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui