mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
This commit is contained in:
parent
670961ad01
commit
287167d453
1 changed files with 3 additions and 3 deletions
|
|
@ -153,9 +153,9 @@ _zsh_highlight_main_highlighter_check_assign()
|
||||||
# Check if the argument is a path.
|
# Check if the argument is a path.
|
||||||
_zsh_highlight_main_highlighter_check_path()
|
_zsh_highlight_main_highlighter_check_path()
|
||||||
{
|
{
|
||||||
[[ -z ${(Q)~arg} ]] && return 1
|
[[ -z "${(Q)~arg}" ]] && return 1
|
||||||
[[ -e ${(Q)~arg} ]] && return 0
|
[[ -e "${(Q)~arg}" ]] && return 0
|
||||||
[[ ! -e ${(Q)~arg:h} ]] && return 1
|
[[ ! -e "${(Q)~arg:h}" ]] && return 1
|
||||||
[[ ${BUFFER[1]} != "-" && ${#BUFFER} == $end_pos && -n $(print "${(Q)~arg}"*(N)) ]] && return 0
|
[[ ${BUFFER[1]} != "-" && ${#BUFFER} == $end_pos && -n $(print "${(Q)~arg}"*(N)) ]] && return 0
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue