mirror of
https://github.com/romkatv/powerlevel10k
synced 2024-12-13 01:25:12 +00:00
don't array-expand unnecessarily
This commit is contained in:
parent
8380cee319
commit
efe0e79436
@ -5469,7 +5469,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
|
||||
|
Loading…
Reference in New Issue
Block a user