]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0456: stray p character displayed on some terms v9.2.0456
authorFoxe Chen <chen.foxe@gmail.com>
Fri, 8 May 2026 21:14:52 +0000 (21:14 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 8 May 2026 21:14:52 +0000 (21:14 +0000)
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.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/term.c
src/version.c

index 37f05ed0163472c1306c8a7ef56bbd92aef59f10..08a070cef607139b3e60b2f314180f14704ea5f9 100644 (file)
@@ -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)
index 36f96c0550195079992bbc8f548983325ad53edb..81c72052ee40623a3ee9d81f196340f3680fb0e7 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    456,
 /**/
     455,
 /**/