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 -- b...@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    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230608174624.D6D721C0642%40moolenaar.net.

Reply via email to