'main': Highlight a broken symlink as a file.

Fixes #342.
This commit is contained in:
Daniel Shahaf 2016-07-20 02:00:56 +00:00
parent 95f7206a93
commit 53083da821
2 changed files with 2 additions and 1 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

View File

@ -32,5 +32,5 @@ BUFFER=': broken-symlink'
CURSOR=5 # to make path_prefix ineligible
expected_region_highlight=(
"3 16 path 'issue #342'" # broken-symlink
"3 16 path" # broken-symlink
)