patch 9.1.0969: ghostty not using kitty protocol by default

Commit: 
https://github.com/vim/vim/commit/231b4fc3cc3cc84cad4babaf077b0fc13ece0932
Author: Christian Brabandt <c...@256bit.org>
Date:   Sat Dec 28 16:27:49 2024 +0100

    patch 9.1.0969: ghostty not using kitty protocol by default
    
    Problem:  ghostty not using kitty protocol by default (00-kat)
    Solution: update keyprotocol option default and include ghostty
    
    fixes: #16318
    closes: #16323
    
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/optiondefs.h b/src/optiondefs.h
index 2d0189765..f9b7eae1f 100644
--- a/src/optiondefs.h
+++ b/src/optiondefs.h
@@ -1514,7 +1514,7 @@ static struct vimoption options[] =
                            {(char_u *)"", (char_u *)0L} SCTX_INIT},
     {"keyprotocol", "kpc",  P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_COLON,
                            (char_u *)&p_kpc, PV_NONE, did_set_keyprotocol, 
expand_set_keyprotocol,
-                           {(char_u 
*)"kitty:kitty,foot:kitty,wezterm:kitty,xterm:mok2", (char_u *)0L}
+                           {(char_u 
*)"kitty:kitty,foot:kitty,ghostty:kitty,wezterm:kitty,xterm:mok2", (char_u *)0L}
                            SCTX_INIT},
     {"keywordprg",  "kp",   P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
                            (char_u *)&p_kp, PV_KP, NULL, NULL,
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index 34efbb527..24bdc42fe 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -596,6 +596,8 @@ func Test_set_completion_string_values()
   call assert_equal([&keyprotocol], getcompletion('set keyprotocol=', 
'cmdline'))
   call feedkeys(":set keyprotocol+=someterm:m\<Tab>\<C-B>\"\<CR>", 'xt')
   call assert_equal('"set keyprotocol+=someterm:mok2', @:)
+  call feedkeys(":set keyprotocol+=someterm:k\<Tab>\<C-B>\"\<CR>", 'xt')
+  call assert_equal('"set keyprotocol+=someterm:kitty', @:)
   set keyprotocol&
 
   " previewpopup / completepopup
@@ -2860,4 +2862,9 @@ func Test_set_missing_options()
   set w9600=23
 endfunc
 
+func Test_default_keyprotocol()
+  " default value of keyprotocol
+  call 
assert_equal('kitty:kitty,foot:kitty,ghostty:kitty,wezterm:kitty,xterm:mok2', 
&keyprotocol)
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/version.c b/src/version.c
index e23a757f9..0bbe08919 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    969,
 /**/
     968,
 /**/

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tRYzv-009dQ7-Vy%40256bit.org.

Raspunde prin e-mail lui