1
0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-12 19:18:28 +02:00

unset WIDGET when calling p10k-on-post-widget from _p9k_on_expand

This commit is contained in:
romkatv 2020-02-16 17:23:17 +01:00
parent 7c1cc0c487
commit 7cbaed976d

View File

@ -5783,7 +5783,11 @@ function _p9k_on_expand() {
_p9k_display_segment $idx $var hide _p9k_display_segment $idx $var hide
fi fi
done 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 else
if [[ $_p9k__display_v[2] == print && -n $_p9k_t[_p9k_empty_line_idx] ]]; then 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] print -rnP -- '%b%k%f%E'$_p9k_t[_p9k_empty_line_idx]