Skip to content

Commit bf78974

Browse files
committed
patch 8.2.2358: wrong #ifdef for use_xterm_like_mouse()
Problem: Wrong #ifdef for use_xterm_like_mouse(). Solution: Use FEAT_MOUSE_XTERM.
1 parent 648ea76 commit bf78974

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/term.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,20 +2053,20 @@ set_termname(char_u *term)
20532053
set_mouse_termcode(KS_MOUSE, (char_u *)"\233M");
20542054
#endif
20552055

2056-
#if (defined(UNIX) || defined(VMS))
2056+
#ifdef FEAT_MOUSE_XTERM
20572057
// focus reporting is supported by xterm compatible terminals and tmux.
20582058
if (use_xterm_like_mouse(term))
20592059
{
20602060
char_u name[3];
2061-
name[0] = (int)KS_EXTRA;
2062-
name[2] = NUL;
20632061

20642062
// handle focus in event
2065-
name[1] = (int)KE_FOCUSGAINED;
2063+
name[0] = KS_EXTRA;
2064+
name[1] = KE_FOCUSGAINED;
2065+
name[2] = NUL;
20662066
add_termcode(name, (char_u *)"\033[I", FALSE);
20672067

20682068
// handle focus out event
2069-
name[1] = (int)KE_FOCUSLOST;
2069+
name[1] = KE_FOCUSLOST;
20702070
add_termcode(name, (char_u *)"\033[O", FALSE);
20712071

20722072
focus_mode = TRUE;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2358,
753755
/**/
754756
2357,
755757
/**/

0 commit comments

Comments
 (0)