*-highlight: (k) subscript flag is sufficient, no need for (K)

This commit is contained in:
Sebastian Gniazdowski 2018-05-25 19:51:22 +02:00
parent d79531331f
commit 4cde68a196

View file

@ -635,7 +635,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
-hsmw-highlight-check-path() -hsmw-highlight-check-path()
{ {
: ${expanded_path:=${(Q)~arg}} : ${expanded_path:=${(Q)~arg}}
[[ -n "${FAST_BLIST_PATTERNS[(K)$expanded_path]}" ]] && return 1 [[ -n "${FAST_BLIST_PATTERNS[(k)$expanded_path]}" ]] && return 1
[[ -z $expanded_path ]] && return 1 [[ -z $expanded_path ]] && return 1
[[ -e $expanded_path ]] && return 0 [[ -e $expanded_path ]] && return 0