driver: Replace eval with ${(P)
This commit is contained in:
parent
cc662371b1
commit
84f0507cf6
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user