'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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user