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 <cb@256bit.org>
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index 34efbb5..24bdc42 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -596,6 +596,8 @@
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 @@
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