mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-12-05 14:18:31 +00:00
driver: Replace eval with ${(P)
This commit is contained in:
1 parent
cc662371b1
commit
84f0507cf6
1 file changed
+2
-2
@@ -141,7 +141,7 @@ _zsh_highlight()
|
||||
{
|
||||
"_zsh_highlight_highlighter_${highlighter}_paint"
|
||||
} always {
|
||||
eval "${cache_place}=(\"\${region_highlight[@]}\")"
|
||||
: ${(AP)cache_place::="${region_highlight[@]}"}
|
||||
}
|
||||
|
||||
# Restore saved region_highlight
|
||||
@@ -150,7 +150,7 @@ _zsh_highlight()
|
||||
fi
|
||||
|
||||
# Use value form cache if any cached
|
||||
eval "region_highlight+=(\"\${${cache_place}[@]}\")"
|
||||
region_highlight+=("${(@P)cache_place}")
|
||||
|
||||
done
|
||||
|
||||
|
||||
Reference in new issue
Block a user