mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Replace previous fix with danielshahaf rec
This commit is contained in:
parent
bb6943ba6d
commit
0ecc3ccdd8
@ -85,10 +85,8 @@ _zsh_highlight()
|
||||
|
||||
# Before we 'emulate -L', save the user's options
|
||||
local -A zsyh_user_options
|
||||
# Retain 1-indexing of zsh arrays
|
||||
setopt localoptions noksharrays
|
||||
if zmodload -e zsh/parameter; then
|
||||
zsyh_user_options=("${(@kv)options}")
|
||||
zsyh_user_options=("${(kv)options[@]}")
|
||||
else
|
||||
local canonical_options onoff option raw_options
|
||||
raw_options=(${(f)"$(emulate -R zsh; set -o)"})
|
||||
|
Loading…
Reference in New Issue
Block a user