diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-16 11:21:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-16 11:21:40 +0100 |
commit | bf78974ca4a6798db7172c226cbfe7b2485b7baa (patch) | |
tree | c2ea64e991bd45a0a1119fd1bb82b7147fe2118a /src/term.c | |
parent | 648ea76e1d8ca9a9788f88d0d96d0cf0653006bb (diff) | |
download | vim-git-bf78974ca4a6798db7172c226cbfe7b2485b7baa.tar.gz |
patch 8.2.2358: wrong #ifdef for use_xterm_like_mouse()v8.2.2358
Problem: Wrong #ifdef for use_xterm_like_mouse().
Solution: Use FEAT_MOUSE_XTERM.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/term.c b/src/term.c index b17bc397e..5d1228dd7 100644 --- a/src/term.c +++ b/src/term.c @@ -2053,20 +2053,20 @@ set_termname(char_u *term) set_mouse_termcode(KS_MOUSE, (char_u *)"\233M"); #endif -#if (defined(UNIX) || defined(VMS)) +#ifdef FEAT_MOUSE_XTERM // 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; + 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] = (int)KE_FOCUSLOST; + name[1] = KE_FOCUSLOST; add_termcode(name, (char_u *)"\033[O", FALSE); focus_mode = TRUE; |