driver: Replace eval with ${(P)

This commit is contained in:
Matthew Martin 2018-02-06 18:47:36 -06:00
parent cc662371b1
commit 84f0507cf6

View File

@ -141,7 +141,7 @@ _zsh_highlight()
{ {
"_zsh_highlight_highlighter_${highlighter}_paint" "_zsh_highlight_highlighter_${highlighter}_paint"
} always { } always {
eval "${cache_place}=(\"\${region_highlight[@]}\")" : ${(AP)cache_place::="${region_highlight[@]}"}
} }
# Restore saved region_highlight # Restore saved region_highlight
@ -150,7 +150,7 @@ _zsh_highlight()
fi fi
# Use value form cache if any cached # Use value form cache if any cached
eval "region_highlight+=(\"\${${cache_place}[@]}\")" region_highlight+=("${(@P)cache_place}")
done done