Patch 8.2.2358
Problem: Wrong #ifdef for use_xterm_like_mouse().
Solution: Use FEAT_MOUSE_XTERM.
Files: src/term.c
*** ../vim-8.2.2357/src/term.c 2021-01-14 21:57:54.705862570 +0100
--- src/term.c 2021-01-16 11:17:25.088021822 +0100
***************
*** 2053,2072 ****
set_mouse_termcode(KS_MOUSE, (char_u *)"\233M");
#endif
! #if (defined(UNIX) || defined(VMS))
// focus reporting is supported by xterm compatible terminals and tmux.
if (use_xterm_like_mouse(term))
{
char_u name[3];
- name[0] = (int)KS_EXTRA;
- name[2] = NUL;
// handle focus in event
! name[1] = (int)KE_FOCUSGAINED;
add_termcode(name, (char_u *)"\033[I", FALSE);
// handle focus out event
! name[1] = (int)KE_FOCUSLOST;
add_termcode(name, (char_u *)"\033[O", FALSE);
focus_mode = TRUE;
--- 2053,2072 ----
set_mouse_termcode(KS_MOUSE, (char_u *)"\233M");
#endif
! #ifdef FEAT_MOUSE_XTERM
// focus reporting is supported by xterm compatible terminals and tmux.
if (use_xterm_like_mouse(term))
{
char_u name[3];
// handle focus in event
! name[0] = KS_EXTRA;
! name[1] = KE_FOCUSGAINED;
! name[2] = NUL;
add_termcode(name, (char_u *)"\033[I", FALSE);
// handle focus out event
! name[1] = KE_FOCUSLOST;
add_termcode(name, (char_u *)"\033[O", FALSE);
focus_mode = TRUE;
*** ../vim-8.2.2357/src/version.c 2021-01-15 19:04:28.953912004 +0100
--- src/version.c 2021-01-16 11:21:18.507121741 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2358,
/**/
--
hundred-and-one symptoms of being an internet addict:
158. You get a tuner card so you can watch TV while surfing.
/// 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/202101161022.10GAMEjZ230349%40masaka.moolenaar.net.