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

bug fix: preserve empty array elements in _p9k_declare (see #678)

This commit is contained in:
romkatv 2020-05-10 06:54:43 +02:00
parent 22396b86f3
commit a238426d97

View file

@ -151,7 +151,7 @@ function _p9k_declare() {
fi
;;
-a)
local -a v=(${(P)2})
local -a v=("${(@P)2}")
if (( set )); then
eval "typeset -ga _${(q)2}=(${(@qq)v})";
else