aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-11-03 15:56:51 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-11-03 15:56:51 +0300
commit1d0ee7cbdde5dcaed7e773c0817e18c899a2f80e (patch)
treeb7d9f45d84072e240cabe21f953ad8783afceebe /internal/p10k.zsh
parent232e312b4d6a0ff46d32a67ce82fa206c4a75e7f (diff)
add p10k-on-post-prompt
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh13
1 files changed, 12 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index adcd7631..6f85a40f 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4775,7 +4775,18 @@ _p9k_wrap_zle_widget() {
function _p9k_zle_line_finish() {
_p9k__line_finished=
- if (( _p9k_reset_on_line_finish )); then
+ local -i reset=_p9k_reset_on_line_finish
+
+ if (( $+functions[p10k-on-post-prompt] )); then
+ __p9k_reset_state=1
+ p10k-on-post-prompt
+ if (( __p9k_reset_state == 2 )); then
+ reset=1
+ fi
+ __p9k_reset_state=0
+ fi
+
+ if (( reset )); then
_p9k_reset_prompt
fi
}