diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-06-08 18:44:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-06-08 18:44:01 +0100 |
commit | 85ef2df075a189da8b767d7554caaed8077de868 (patch) | |
tree | e469173e2e0bb72790b8d7c0f247096f05a65524 | |
parent | 7fbcee6f928356f1c205a4dfa67c1d542f743b92 (diff) |
patch 9.0.1619: the focus gained/lost escape sequences cause troublev9.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)
-rw-r--r-- | src/term.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c index 2f0a0cb4d7..0416acc705 100644 --- a/src/term.c +++ b/src/term.c @@ -2221,7 +2221,9 @@ set_termname(char_u *term) // 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)) + // 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,7 +6449,7 @@ check_termcode( # endif // !USE_ON_FLY_SCROLL #endif // FEAT_GUI -#if (defined(UNIX) || defined(VMS)) +#if defined(UNIX) || defined(VMS) /* * Handle FocusIn/FocusOut event sequences reported by XTerm. * (CSI I/CSI O) diff --git a/src/version.c b/src/version.c index 13888eb320..90331ed8e2 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1619, +/**/ 1618, /**/ 1617, |