1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-24 16:11:57 +00:00

add p10k-on-post-prompt

This commit is contained in:
romkatv 2019-11-03 13:56:51 +01:00
parent 232e312b4d
commit 1d0ee7cbdd

View file

@ -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
}