Update zsh-syntax-highlighting.zsh

This commit is contained in:
Austin Traver 2019-07-11 15:56:26 -07:00 committed by GitHub
parent 0ecc3ccdd8
commit bb7b3b3801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ _zsh_highlight()
local canonical_options onoff option raw_options
raw_options=(${(f)"$(emulate -R zsh; set -o)"})
canonical_options=(${${${(M)raw_options:#*off}%% *}#no} ${${(M)raw_options:#*on}%% *})
for option in $canonical_options; do
for option in $("${(kv)options[@]}"); do
[[ -o $option ]]
# This variable cannot be eliminated c.f. workers/42101.
onoff=${${=:-off on}[2-$?]}