From dd12dde93a83b2863a4ff05440ec1fb7e82af9a6 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 25 Sep 2015 17:53:22 +0000 Subject: [PATCH] Fix errors with non-reserved-word typeset. Follow-up to 908c4fe150c4023662462c96f634f6f710000cef. Intended to fix fix zsh-users/zsh-syntax-highlighting#206. --- 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 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 } }