Added quotes to suppress error

This commit is contained in:
Jan M. Binder 2012-04-07 11:48:11 +02:00
parent bb0d575942
commit 966eb851ca

View File

@ -107,7 +107,7 @@ typeset -gA ZSH_HIGHLIGHT_STYLES
# Returns 0 if the buffer has changed since _zsh_highlight was last called. # Returns 0 if the buffer has changed since _zsh_highlight was last called.
_zsh_highlight_buffer_modified() _zsh_highlight_buffer_modified()
{ {
[[ ${_ZSH_HIGHLIGHT_PRIOR_BUFFER:-} != $BUFFER ]] [[ "${_ZSH_HIGHLIGHT_PRIOR_BUFFER:-}" != "$BUFFER" ]]
} }
# Whether the cursor has moved or not. # Whether the cursor has moved or not.