To: vim_dev@googlegroups.com Subject: Patch 8.2.2358 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///