1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-25 00:21:58 +00:00

don't reset PS2 prompt

This commit is contained in:
romkatv 2019-11-06 09:32:54 +01:00
parent 00c69d6bda
commit 8203b6a218

View file

@ -4241,7 +4241,7 @@ _p9k_precmd() {
} }
function _p9k_reset_prompt() { function _p9k_reset_prompt() {
if zle; then if zle && [[ -z $_p9k__line_finished ]]; then
(( __p9k_ksh_arrays )) && setopt ksh_arrays (( __p9k_ksh_arrays )) && setopt ksh_arrays
(( __p9k_sh_glob )) && setopt sh_glob (( __p9k_sh_glob )) && setopt sh_glob
zle .reset-prompt zle .reset-prompt
@ -4871,6 +4871,8 @@ _p9k_wrap_zle_widget() {
} }
function _p9k_zle_line_finish() { function _p9k_zle_line_finish() {
(( $+_p9k__line_finished )) && return
_p9k__line_finished= _p9k__line_finished=
local -i reset=_p9k_reset_on_line_finish local -i reset=_p9k_reset_on_line_finish
@ -4896,6 +4898,8 @@ function _p9k_zle_line_finish() {
if (( reset )); then if (( reset )); then
_p9k_reset_prompt _p9k_reset_prompt
fi fi
_p9k__line_finished='%{%}'
} }
function _p9k_zle_line_pre_redraw() { function _p9k_zle_line_pre_redraw() {