From 266e70222f6f584e13623e5b2c014182c733c7d0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Jan 2022 07:46:20 +0530 Subject: [PATCH] Avoid hooking LE widgets at all when using no-cursor --- shell-integration/zsh/kitty-integration | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index 5a75c681e..70d7d0641 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -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.