Avoid hooking LE widgets at all when using no-cursor

This commit is contained in:
Kovid Goyal 2022-01-05 07:46:20 +05:30
parent d4639e2aea
commit 266e70222f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -201,8 +201,11 @@ _ksi_deferred_init() {
(( _ksi_state = 1 ))
}
functions[_ksi_zle_line_init]+='
builtin print -n "\\e]133;B\\a"'
# the following two lines are commented out as currently kitty doesn't use B prompt marking
# and hooking zle widgets in ZSH is a total minefield, see https://github.com/kovidgoyal/kitty/issues/4428
# so we can at least tell users to use no-cursor and with that avoid hooking ZLE widgets at all
# functions[_ksi_zle_line_init]+='
# builtin print -n "\\e]133;B\\a"'
fi
# Enable terminal title changes.