patch 9.2.0264: Cannot disable kitty keyboard protocol in vim :terminal

Commit: 
https://github.com/vim/vim/commit/d13f135295a4637df48619e15eb03fac389ad552
Author: Julio B <[email protected]>
Date:   Sat Mar 28 10:01:38 2026 +0000

    patch 9.2.0264: Cannot disable kitty keyboard protocol in vim :terminal
    
    Problem:  Cannot disable kitty keyboard protocol in vim :terminal
    Solution: Handle "CSI <u" sequence in libvterm (Julio B).
    
    related: v9.0.0930
    closes: #19837
    
    Signed-off-by: Julio B <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/libvterm/src/state.c b/src/libvterm/src/state.c
index aff97b076..fca833326 100644
--- a/src/libvterm/src/state.c
+++ b/src/libvterm/src/state.c
@@ -983,6 +983,7 @@ static int on_csi(const char *leader, const long args[], 
int argcount, const cha
     switch(leader[0]) {
     case '?':
     case '>':
+    case '<':
       leader_byte = leader[0];
       break;
     default:
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index 1097b06c7..6f8fb3662 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -2441,4 +2441,14 @@ func Test_term_TextChangedT_close()
   augroup END
 endfunc
 
+func Test_terminal_disable_kitty_keyboard()
+  CheckRunVimInTerminal
+  let cmd = ['sh', '-c', 'printf '' [>1u [?u [<u [?u''; sleep 1']
+  let buf = term_start(cmd)
+  let job = term_getjob(buf)
+  call WaitForAssert({-> assert_equal('dead', job_status(job))})
+  call WaitForAssert({-> assert_equal('^[[?1u^[[?0u', term_getline(buf, 1))})
+  bwipe!
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/version.c b/src/version.c
index 500dfc864..c63416ee5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    264,
 /**/
     263,
 /**/

-- 
-- 
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/E1w6Qh5-009wCR-NZ%40256bit.org.

Raspunde prin e-mail lui