1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

don't array-expand unnecessarily

This commit is contained in:
romkatv 2020-01-11 19:26:04 +01:00
parent efe0e79436
commit 84f01d5cb3

View file

@ -230,7 +230,7 @@ function _p9k_parse_buffer() {
if [[ $token == *'$'* ]]; then
if [[ $token == $~var ]]; then
n=${${token##[^[:IDENT:]]}%%[^[:IDENT:]]}
[[ $token == *'"' ]] && v=("${(@P)n}") || v=(${(P)n})
[[ $token == *'"' ]] && v=("${(P)n}") || v=(${(P)n})
tokens[1,0]=(${(qq)v})
continue
fi