Patch syntax highlighting bug

I personally use ksh-style arrays, but I noticed that this plugin doesn't work when that setting is enabled. Adding this one line of code allows this plugin to work for users who include "setopt ksharrays" in their .zshrc file.
This commit is contained in:
Austin Traver 2019-07-07 07:33:49 -07:00 committed by GitHub
parent d766243f7a
commit bb6943ba6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +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}")
else