1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

don't replace show with print if p10k-on-post-prompt is defined

This commit is contained in:
romkatv 2020-01-13 08:54:29 +01:00
parent 32c3ad75cc
commit 1efade9962

View file

@ -4479,7 +4479,7 @@ function _p9k_on_expand() {
if [[ $P9K_TTY == new ]]; then
_p9k__empty_line_i=3
_p9k__display_v[2]=hide
elif [[ -z $_p9k_transient_prompt ]]; then
elif [[ -z $_p9k_transient_prompt && $+functions[p10k-on-post-prompt] == 0 ]]; then
_p9k__empty_line_i=3
_p9k__display_v[2]=print
else
@ -4492,7 +4492,7 @@ function _p9k_on_expand() {
if [[ $P9K_TTY == new ]]; then
_p9k__ruler_i=3
_p9k__display_v[4]=hide
elif [[ -z $_p9k_transient_prompt ]]; then
elif [[ -z $_p9k_transient_prompt && $+functions[p10k-on-post-prompt] == 0 ]]; then
_p9k__ruler_i=3
_p9k__display_v[4]=print
else