# HG changeset patch # User Bram Moolenaar # Date 1670026504 -3600 # Node ID e352d200d0961e536cf158f2d0459ee7fed737e0 # Parent 5b84a71965b99d2d2b41ffc03b47279717391a44 patch 9.0.0996: if 'keyprotocol' is empty "xterm" still uses modifyOtherKeys Commit: https://github.com/vim/vim/commit/af19ec0bfad6b70f3b7898da7f786a348ac01b50 Author: Bram Moolenaar Date: Sat Dec 3 00:00:38 2022 +0000 patch 9.0.0996: if 'keyprotocol' is empty "xterm" still uses modifyOtherKeys Problem: If 'keyprotocol' is empty "xterm" still uses modifyOtherKeys. Solution: Remove t_TI, t_RK and t_TE from the "xterm" builtin termcap and let the default value of 'keyprotocol' add those. diff --git a/src/term.c b/src/term.c --- a/src/term.c +++ b/src/term.c @@ -452,9 +452,11 @@ static tcap_entry_T builtin_xterm[] = { {(int)KS_TI, "\0337\033[?47h"}, {(int)KS_TE, "\033[?47l\0338"}, # endif - {(int)KS_CTI, "\033[>4;2m"}, - {(int)KS_CRK, "\033[?4m"}, // see "builtin_mok2" - {(int)KS_CTE, "\033[>4;m"}, + // These are now under control of the 'keyprotocol' option, see + // "builtin_mok2". + // {(int)KS_CTI, "\033[>4;2m"}, + // {(int)KS_CRK, "\033[?4m"}, + // {(int)KS_CTE, "\033[>4;m"}, {(int)KS_CIS, "\033]1;"}, {(int)KS_CIE, "\007"}, {(int)KS_TS, "\033]2;"}, diff --git a/src/version.c b/src/version.c --- 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 */ /**/ + 996, +/**/ 995, /**/ 994,