mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-06-05 12:36:30 +08:00
Update zsh-syntax-highlighting.zsh
This commit is contained in:
parent
0ecc3ccdd8
commit
bb7b3b3801
@ -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-$?]}
|
||||
|
Loading…
Reference in New Issue
Block a user