{(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,
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
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