mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
*highlight: Correct order of checks in *-main-type
This commit is contained in:
parent
1c56551a67
commit
ee30daa40b
1 changed files with 5 additions and 5 deletions
|
@ -122,14 +122,14 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
[[ -z "$REPLY" ]] && {
|
||||
|
||||
if zmodload -e zsh/parameter; then
|
||||
if (( $+commands[(e)$1] )); then
|
||||
REPLY=command
|
||||
elif (( $+builtins[(e)$1] )); then
|
||||
REPLY=builtin
|
||||
elif (( $+aliases[(e)$1] )); then
|
||||
if (( $+aliases[(e)$1] )); then
|
||||
REPLY=alias
|
||||
elif (( $+functions[(e)$1] )); then
|
||||
REPLY=function
|
||||
elif (( $+builtins[(e)$1] )); then
|
||||
REPLY=builtin
|
||||
elif (( $+commands[(e)$1] )); then
|
||||
REPLY=command
|
||||
elif (( $+saliases[(e)${1##*.}] )); then
|
||||
REPLY='suffix alias'
|
||||
elif (( $reswords[(Ie)$1] )); then
|
||||
|
|
Loading…
Reference in a new issue