mirror of
https://github.com/zdharma-continuum/fast-syntax-highlighting.git
synced 2026-09-10 07:16:18 -04:00
*-highlight: First place that checks paths now also respects the *BLIST*
Issue #22
This commit is contained in:
parent
ea6157a791
commit
0281aa0ba3
|
|
@ -220,10 +220,12 @@ typeset -ga ZLAST_COMMANDS
|
|||
[[ -z "$REPLY" ]] && REPLY="${$(LC_ALL=C builtin type -w -- $1 2>/dev/null)##*: }"
|
||||
|
||||
[[ "$REPLY" = "none" ]] && {
|
||||
[[ -d "$1" ]] && REPLY="dirpath" || {
|
||||
for cdpath_dir in $cdpath; do
|
||||
[[ -d "$cdpath_dir/$1" ]] && { REPLY="dirpath"; break; }
|
||||
done
|
||||
[[ -n "${FAST_BLIST_PATTERNS[(k)${${(M)1:#/*}:-$PWD/$1}]}" ]] || {
|
||||
[[ -d "$1" ]] && REPLY="dirpath" || {
|
||||
for cdpath_dir in $cdpath; do
|
||||
[[ -d "$cdpath_dir/$1" ]] && { REPLY="dirpath"; break; }
|
||||
done
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue