driver: Correctly escape assoc key pattern

This commit is contained in:
Daniel Shahaf 2017-11-05 14:38:05 +00:00
parent 18517cc98e
commit 9d9e9662cf

View File

@ -188,7 +188,7 @@ _zsh_highlight_apply_zle_highlight() {
integer first="$3" second="$4"
# read the relevant entry from zle_highlight
local region="${zle_highlight[(r)${entry}:*]-}"
local region="${zle_highlight[(r)${(b)entry}:*]-}"
if [[ -z "$region" ]]; then
# entry not specified at all, use default value