mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 12:20:07 +00:00
properly restore prompt after SIGINT when transient prompt is disabled
This commit is contained in:
parent
8488f7c75c
commit
f8ae544e6e
1 changed files with 8 additions and 7 deletions
|
@ -7388,7 +7388,6 @@ function _p9k_on_widget_zle-line-finish() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( __p9k_reset_state == 2 )); then
|
|
||||||
if [[ $1 == int ]]; then
|
if [[ $1 == int ]]; then
|
||||||
_p9k__must_restore_prompt=1
|
_p9k__must_restore_prompt=1
|
||||||
if (( !_p9k__restore_prompt_fd )); then
|
if (( !_p9k__restore_prompt_fd )); then
|
||||||
|
@ -7396,6 +7395,8 @@ function _p9k_on_widget_zle-line-finish() {
|
||||||
zle -F $_p9k__restore_prompt_fd _p9k_restore_prompt
|
zle -F $_p9k__restore_prompt_fd _p9k_restore_prompt
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if (( __p9k_reset_state == 2 )); then
|
||||||
if (( optimized )); then
|
if (( optimized )); then
|
||||||
RPROMPT= PROMPT=$_p9k_transient_prompt _p9k_reset_prompt
|
RPROMPT= PROMPT=$_p9k_transient_prompt _p9k_reset_prompt
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue