Replace previous fix with danielshahaf rec

This commit is contained in:
Austin Traver 2019-07-08 20:44:35 -07:00
parent bb6943ba6d
commit 0ecc3ccdd8
No known key found for this signature in database
GPG Key ID: 143B35EC8AC49B99

View File

@ -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)"})