From: Foxe Chen Date: Fri, 8 May 2026 21:14:52 +0000 (+0000) Subject: patch 9.2.0456: stray p character displayed on some terms X-Git-Tag: v9.2.0456^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7644d9d6114d0b17bfaebb069dd68ae0d7d907fb;p=thirdparty%2Fvim.git patch 9.2.0456: stray p character displayed on some terms Problem: stray p character displayed on some terms Solution: Make sending DECRQM more strict and disable it for a few more terminals (Foxe Chen) fixes: #20156 fixes: #20140 closes: #20161 Signed-off-by: Foxe Chen Signed-off-by: Christian Brabandt --- diff --git a/src/term.c b/src/term.c index 37f05ed016..08a070cef6 100644 --- a/src/term.c +++ b/src/term.c @@ -5182,7 +5182,6 @@ handle_version_response(int first, int *arg, int argc, char_u *tp) may_adjust_color_count(256); // Libvterm can handle SGR mouse reporting. term_props[TPR_MOUSE].tpr_status = TPR_MOUSE_SGR; - term_props[TPR_DECRQM].tpr_status = TPR_YES; } if (version == 95) @@ -5228,7 +5227,6 @@ handle_version_response(int first, int *arg, int argc, char_u *tp) term_props[TPR_MOUSE].tpr_status = TPR_MOUSE_SGR; else if (version >= 95) term_props[TPR_MOUSE].tpr_status = TPR_MOUSE_XTERM2; - term_props[TPR_DECRQM].tpr_status = TPR_YES; } // Detect terminals that set $TERM to something like @@ -5243,13 +5241,11 @@ handle_version_response(int first, int *arg, int argc, char_u *tp) if (arg[1] >= 2500) { term_props[TPR_UNDERLINE_RGB].tpr_status = TPR_YES; - term_props[TPR_DECRQM].tpr_status = TPR_YES; } else if (version == 136 && arg[2] == 0) { term_props[TPR_UNDERLINE_RGB].tpr_status = TPR_YES; - term_props[TPR_DECRQM].tpr_status = TPR_YES; // PuTTY sends 0;136;0 if (arg[0] == 0) diff --git a/src/version.c b/src/version.c index 36f96c0550..81c72052ee 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 456, /**/ 455, /**/