'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:
Daniel Shahaf 2016-07-22 16:09:06 +00:00
commit e6fb61c42b
2 changed files with 37 additions and 0 deletions

View file

@ -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