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

parser bug fix: quote array elements after parameter expansion

This commit is contained in:
romkatv 2020-03-16 09:14:57 +01:00
parent d53355cd30
commit 48a61471a7

View file

@ -296,7 +296,7 @@ function _p9k_parse_buffer() {
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
fi fi