mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
nother error trap to prevent
This commit is contained in:
parent
8c47e82475
commit
4d0c5604d9
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue