mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Update zsh-syntax-highlighting.zsh
This commit is contained in:
parent
0ecc3ccdd8
commit
bb7b3b3801
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ _zsh_highlight()
|
||||||
local canonical_options onoff option raw_options
|
local canonical_options onoff option raw_options
|
||||||
raw_options=(${(f)"$(emulate -R zsh; set -o)"})
|
raw_options=(${(f)"$(emulate -R zsh; set -o)"})
|
||||||
canonical_options=(${${${(M)raw_options:#*off}%% *}#no} ${${(M)raw_options:#*on}%% *})
|
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 ]]
|
[[ -o $option ]]
|
||||||
# This variable cannot be eliminated c.f. workers/42101.
|
# This variable cannot be eliminated c.f. workers/42101.
|
||||||
onoff=${${=:-off on}[2-$?]}
|
onoff=${${=:-off on}[2-$?]}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue