'main': Fix highlighting of «\~», which isn't a filename expansion.

This commit is contained in:
Daniel Shahaf 2016-06-02 09:12:38 +00:00
commit 6afbae70d0
2 changed files with 37 additions and 1 deletions

View file

@ -687,7 +687,7 @@ _zsh_highlight_main_highlighter_expand_path()
# The $~1 syntax normally performs filename generation, but not when it's on the right-hand side of ${x:=y}.
setopt localoptions nonomatch
unset REPLY
: ${REPLY:=${(Q)~1}}
: ${REPLY:=${(Q)${(e)~1}}}
}
# -------------------------------------------------------------------------------------------------