mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Merge 6f0b1231ec into 5eb677bb0f
This commit is contained in:
commit
60883d322d
3 changed files with 87 additions and 0 deletions
|
|
@ -1215,6 +1215,12 @@ _zsh_highlight_main_highlighter_check_path()
|
|||
integer autocd=0
|
||||
fi
|
||||
|
||||
if [[ $zsyh_user_options[cdablevars] == on ]]; then
|
||||
integer cdablevars=1
|
||||
else
|
||||
integer cdablevars=0
|
||||
fi
|
||||
|
||||
if (( in_command_position )); then
|
||||
# ### Currently, this value is never returned: either it's overwritten
|
||||
# ### below, or the return code is non-zero
|
||||
|
|
@ -1254,6 +1260,9 @@ _zsh_highlight_main_highlighter_check_path()
|
|||
# ### This seems unreachable for the current callers
|
||||
return 0
|
||||
fi
|
||||
elif (( autocd && cdablevars && $+nameddirs[(e)$expanded_path] )) && [[ -x $nameddirs[$expanded_path] ]]; then
|
||||
REPLY=hashed-command
|
||||
return 0
|
||||
fi
|
||||
else
|
||||
if [[ -L $expanded_path || -e $expanded_path ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue