mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 08:00:06 +00:00
don't array-expand unnecessarily
This commit is contained in:
parent
efe0e79436
commit
84f01d5cb3
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ function _p9k_parse_buffer() {
|
||||||
if [[ $token == *'$'* ]]; then
|
if [[ $token == *'$'* ]]; then
|
||||||
if [[ $token == $~var ]]; then
|
if [[ $token == $~var ]]; then
|
||||||
n=${${token##[^[:IDENT:]]}%%[^[:IDENT:]]}
|
n=${${token##[^[:IDENT:]]}%%[^[:IDENT:]]}
|
||||||
[[ $token == *'"' ]] && v=("${(@P)n}") || v=(${(P)n})
|
[[ $token == *'"' ]] && v=("${(P)n}") || v=(${(P)n})
|
||||||
tokens[1,0]=(${(qq)v})
|
tokens[1,0]=(${(qq)v})
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue