aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-11-06 11:32:54 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-11-06 11:32:54 +0300
commit8203b6a21862108fdf1cb7098928e2d13b4f2698 (patch)
tree68830c4fedab72977f65b8b71c9dd51efa968b53 /internal/p10k.zsh
parent00c69d6bda183825376864b5ba40588bc84a85a8 (diff)
don't reset PS2 prompt
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index e0a7b398..beb7b3bd 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4241,7 +4241,7 @@ _p9k_precmd() {
}
function _p9k_reset_prompt() {
- if zle; then
+ if zle && [[ -z $_p9k__line_finished ]]; then
(( __p9k_ksh_arrays )) && setopt ksh_arrays
(( __p9k_sh_glob )) && setopt sh_glob
zle .reset-prompt
@@ -4871,6 +4871,8 @@ _p9k_wrap_zle_widget() {
}
function _p9k_zle_line_finish() {
+ (( $+_p9k__line_finished )) && return
+
_p9k__line_finished=
local -i reset=_p9k_reset_on_line_finish
@@ -4896,6 +4898,8 @@ function _p9k_zle_line_finish() {
if (( reset )); then
_p9k_reset_prompt
fi
+
+ _p9k__line_finished='%{%}'
}
function _p9k_zle_line_pre_redraw() {