mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Default possibly unset variables to empty
This commit is contained in:
parent
a33c72e838
commit
a9ce931439
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue