nother error trap to prevent

This commit is contained in:
Paul Ackersviller 2016-10-12 23:34:29 -04:00
commit 4d0c5604d9
2 changed files with 4 additions and 4 deletions

View file

@ -146,8 +146,8 @@ _zsh_highlight_main__type() {
REPLY=none
fi
fi
if ! (( $+REPLY )); then
REPLY="${$(LC_ALL=C builtin type -w -- $1 2>/dev/null)#*: }"
if ! (( $+REPLY )); then # below will frequently trigger ERR trap without || :
REPLY="${$(LC_ALL=C builtin type -w -- $1 2>/dev/null || :)#*: }"
fi
if (( $+_zsh_highlight_main__command_type_cache )); then
_zsh_highlight_main__command_type_cache[(e)$1]=$REPLY