Commit: patch 9.2.0456: stray p character displayed on some terms

3 views
Skip to first unread message

Christian Brabandt

unread,
May 8, 2026, 5:30:14 PM (7 days ago) May 8
to vim...@googlegroups.com
patch 9.2.0456: stray p character displayed on some terms

Commit: https://github.com/vim/vim/commit/7644d9d6114d0b17bfaebb069dd68ae0d7d907fb
Author: Foxe Chen <chen...@gmail.com>
Date: Fri May 8 21:14:52 2026 +0000

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 <chen...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/term.c b/src/term.c
index 37f05ed01..08a070cef 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 36f96c055..81c72052e 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,
/**/
Reply all
Reply to author
Forward
0 new messages