From 622358f32d4395e58859f7fa38bad84509eb3e32 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Tue, 6 Feb 2018 19:12:08 -0600 Subject: [PATCH] main: Test suffix aliases if zsh/parameter is available --- highlighters/main/test-data/alias.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighters/main/test-data/alias.zsh b/highlighters/main/test-data/alias.zsh index 2977343..5ec2a2d 100644 --- a/highlighters/main/test-data/alias.zsh +++ b/highlighters/main/test-data/alias.zsh @@ -43,7 +43,7 @@ BUFFER='x.alias2; alias1' # functionality is present, and skip verifying suffix-alias highlighting # if it isn't. expected_region_highlight=() -if [[ "$(type -w x.alias2)" == *suffix* ]]; then +if zmodload -e zsh/parameter || [[ "$(type -w x.alias2)" == *suffix* ]]; then expected_region_highlight+=( "1 8 suffix-alias" # x.alias2 )