aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-13 10:54:29 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-13 10:54:29 +0300
commit1efade9962123a3b60f4277b12190dc459359693 (patch)
treede708e698a0771fea71a5208fc0fe7d52842b1f9 /internal/p10k.zsh
parent32c3ad75cc564b484ab81af3f00f4cbcee614148 (diff)
don't replace show with print if p10k-on-post-prompt is defined
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 68f78262..e09575cb 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -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