diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index c207f7a..13b573c 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -126,7 +126,7 @@ _zsh_highlight() } always { - typeset -g _ZSH_HIGHLIGHT_PRIOR_BUFFER=$BUFFER + typeset -g _ZSH_HIGHLIGHT_PRIOR_BUFFER="$BUFFER" typeset -gi _ZSH_HIGHLIGHT_PRIOR_CURSOR=$CURSOR } }