Default possibly unset variables to empty

This commit is contained in:
Matthew Martin
2017-11-02 19:24:56 -05:00
parent a33c72e838
commit a9ce931439
2 changed files with 2 additions and 2 deletions

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)${entry}:*]-}"
if [[ -z "$region" ]]; then
# entry not specified at all, use default value