main: Fix check for suffix aliases (fixes #574)

This commit is contained in:
Daniel Shahaf
2018-10-30 21:25:59 +00:00
parent 4ce56a821e
commit 3e6d1375c9
2 changed files with 4 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ _zsh_highlight_main__type() {
fi
if (( $+aliases[(e)$1] )) && (( aliases_allowed )); then
REPLY=alias
elif (( $+saliases[(e)${1##*.}] )); then
elif [[ $1 == *.* && -n ${1%.*} ]] && (( $+saliases[(e)${1##*.}] )); then
REPLY='suffix alias'
elif (( $reswords[(Ie)$1] )); then
REPLY=reserved