patch 9.2.0456: stray p character displayed on some terms

Commit: 
https://github.com/vim/vim/commit/7644d9d6114d0b17bfaebb069dd68ae0d7d907fb
Author: Foxe Chen <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wLSlo-00Ch1U-TY%40256bit.org.

Raspunde prin e-mail lui