To: vim_dev@googlegroups.com Subject: Patch 9.0.1619 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1619 Problem: The focus gained/lost escape sequences cause trouble for a terminal where Vim does not expect them. Solution: Always recognize the codes for focus gained/lost. (closes #12499) Files: src/term.c *** ../vim-9.0.1618/src/term.c 2023-02-23 13:53:58.247215042 +0000 --- src/term.c 2023-06-08 18:41:06.107980777 +0100 *************** *** 2221,2227 **** // We hard-code the received escape sequences here. There are the terminfo // entries kxIN and kxOUT, but they are rarely used and do hot have a // two-letter termcap name. ! if (use_xterm_like_mouse(term)) { char_u name[3]; --- 2221,2229 ---- // We hard-code the received escape sequences here. There are the terminfo // entries kxIN and kxOUT, but they are rarely used and do hot have a // two-letter termcap name. ! // This used to be done only for xterm-like terminals, but some others also ! // may produce these codes. Always recognize them, as the chance of them ! // being used for something else is very small. { char_u name[3]; *************** *** 6447,6453 **** # endif // !USE_ON_FLY_SCROLL #endif // FEAT_GUI ! #if (defined(UNIX) || defined(VMS)) /* * Handle FocusIn/FocusOut event sequences reported by XTerm. * (CSI I/CSI O) --- 6449,6455 ---- # endif // !USE_ON_FLY_SCROLL #endif // FEAT_GUI ! #if defined(UNIX) || defined(VMS) /* * Handle FocusIn/FocusOut event sequences reported by XTerm. * (CSI I/CSI O) *** ../vim-9.0.1618/src/version.c 2023-06-08 17:57:15.125742171 +0100 --- src/version.c 2023-06-08 18:41:46.307934694 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1619, /**/ -- "The sun oozed over the horizon, shoved aside darkness, crept along the greensward, and, with sickly fingers, pushed through the castle window, revealing the pillaged princess, hand at throat, crown asunder, gaping in frenzied horror at the sated, sodden amphibian lying beside her, disbelieving the magnitude of the frog's deception, screaming madly, "You lied!" - Winner of the Bulwer-Lytton contest (San Jose State University), wherein one writes only the first line of a bad novel /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///