From d3a20f00d6555265a6b6d63814ce775f90b0bcd9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Jan 2022 09:25:41 +0530 Subject: [PATCH] Add a comment explaining where we use PS2 marks --- shell-integration/zsh/kitty-integration | 1 + 1 file changed, 1 insertion(+) diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index f648e0275..7c1f2aaab 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -181,6 +181,7 @@ _ksi_deferred_init() { # - False positive (with prompt_percent): PS1="%(?.$mark1.)" # - False negative (with prompt_subst): PS1='$mark1' [[ $PS1 == *$mark1* ]] || PS1=${mark1}${PS1} + # PS2 mark is needed when clearing the prompt on resize [[ $PS2 == *$mark2* ]] || PS2=${mark2}${PS2} (( _ksi_state = 2 )) else