mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Highlight a broken symlink as a file.
Merge remote-tracking branch 'upstream/pr/342' * upstream/pr/342: 'main': Highlight a broken symlink as a file. tests: Add an XFail test for issue #342.
This commit is contained in:
commit
e6fb61c42b
2 changed files with 37 additions and 0 deletions
|
|
@ -582,6 +582,7 @@ _zsh_highlight_main_highlighter_check_path()
|
|||
REPLY=path
|
||||
|
||||
[[ -z $expanded_path ]] && return 1
|
||||
[[ -L $expanded_path ]] && return 0
|
||||
[[ -e $expanded_path ]] && return 0
|
||||
|
||||
# Search the path in CDPATH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue