From 966eb851cac069301755c7124716e6cf0fffc2a9 Mon Sep 17 00:00:00 2001 From: "Jan M. Binder" Date: Sat, 7 Apr 2012 11:48:11 +0200 Subject: [PATCH] Added quotes to suppress error --- zsh-syntax-highlighting.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 2dcc6a7..cbd63e9 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -107,7 +107,7 @@ typeset -gA ZSH_HIGHLIGHT_STYLES # Returns 0 if the buffer has changed since _zsh_highlight was last called. _zsh_highlight_buffer_modified() { - [[ ${_ZSH_HIGHLIGHT_PRIOR_BUFFER:-} != $BUFFER ]] + [[ "${_ZSH_HIGHLIGHT_PRIOR_BUFFER:-}" != "$BUFFER" ]] } # Whether the cursor has moved or not.