diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-02-16 19:23:17 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-02-16 19:23:17 +0300 |
commit | 7cbaed976d227ce346e9f23a16ac674b1873673e (patch) | |
tree | 24b4dbb94522668d79218007a7dd25bb78eb5060 /internal | |
parent | 7c1cc0c487a72c19b1c6c57b67fab7de13aa26a9 (diff) |
unset WIDGET when calling p10k-on-post-widget from _p9k_on_expand
Diffstat (limited to 'internal')
-rw-r--r-- | internal/p10k.zsh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index efaf2230..24aec9d2 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5783,7 +5783,11 @@ function _p9k_on_expand() { _p9k_display_segment $idx $var hide fi done - (( $+functions[p10k-on-post-widget] )) && p10k-on-post-widget + if (( $+functions[p10k-on-post-widget] )); then + local -h WIDGET + unset WIDGET + p10k-on-post-widget + fi else if [[ $_p9k__display_v[2] == print && -n $_p9k_t[_p9k_empty_line_idx] ]]; then print -rnP -- '%b%k%f%E'$_p9k_t[_p9k_empty_line_idx] |