From 0ecc3ccdd81ba9a0e2eeb1d2f835eeb2fde59ea3 Mon Sep 17 00:00:00 2001 From: Austin Traver Date: Mon, 8 Jul 2019 20:44:35 -0700 Subject: [PATCH] Replace previous fix with danielshahaf rec --- zsh-syntax-highlighting.zsh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index cc08aec..6776809 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -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)"})