mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-03-05 23:20:35 +01:00
Merge d08d5ef7c5 into 1d85c69261
This commit is contained in:
commit
a6e8ca7cf6
2 changed files with 9 additions and 4 deletions
|
|
@ -1816,8 +1816,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)${~1}}}
|
||||
if [[ ${1[1]} == '~' ]]; then
|
||||
REPLY=${~${(Q)1}}
|
||||
else
|
||||
REPLY=${(Q)1}
|
||||
fi
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue