'main': Let the type determination ignore global aliases when it ignores regular ones.
This commit is contained in:
		
							parent
							
								
									e2dddb91c6
								
							
						
					
					
						commit
						08839bbd87
					
				|  | @ -180,7 +180,7 @@ _zsh_highlight_main__type() { | |||
|     if (( $+aliases[(e)$1] )); then | ||||
|       may_cache=0 | ||||
|     fi | ||||
|     if (( ${+galiases[(e)$1]} )); then | ||||
|     if (( ${+galiases[(e)$1]} )) && (( aliases_allowed )); then | ||||
|       REPLY='global alias' | ||||
|     elif (( $+aliases[(e)$1] )) && (( aliases_allowed )); then | ||||
|       REPLY=alias | ||||
|  |  | |||
|  | @ -34,5 +34,5 @@ local s=x | |||
| BUFFER=$'$s' | ||||
| 
 | ||||
| expected_region_highlight=( | ||||
|   '1 2 unknown-token "fixed in the next commit"' # $s | ||||
|   '1 2 unknown-token' # $s | ||||
| ) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue