mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Fix regression this branch introduced.
This commit is contained in:
parent
10791c4d45
commit
4eda52bb06
2 changed files with 41 additions and 1 deletions
|
|
@ -687,7 +687,11 @@ _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)${(e)~1}}}
|
||||
if eval 'REPLY=${(e)~1}' 2>/dev/null; then
|
||||
REPLY=${(Q)REPLY}
|
||||
else
|
||||
REPLY=$1
|
||||
fi
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue