mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-24 16:11:57 +00:00
don't reset PS2 prompt
This commit is contained in:
parent
00c69d6bda
commit
8203b6a218
1 changed files with 5 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue