mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Merge pull request #75 from garinger/master
supposed fix for issue #73 and issue #74
This commit is contained in:
commit
cbfd4a8889
@ -138,7 +138,7 @@ _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…
Reference in New Issue
Block a user