Skip to content

Commit 622358f

Browse files
committed
main: Test suffix aliases if zsh/parameter is available
1 parent fdca2ef commit 622358f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highlighters/main/test-data/alias.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ BUFFER='x.alias2; alias1'
4343
# functionality is present, and skip verifying suffix-alias highlighting
4444
# if it isn't.
4545
expected_region_highlight=()
46-
if [[ "$(type -w x.alias2)" == *suffix* ]]; then
46+
if zmodload -e zsh/parameter || [[ "$(type -w x.alias2)" == *suffix* ]]; then
4747
expected_region_highlight+=(
4848
"1 8 suffix-alias" # x.alias2
4949
)

0 commit comments

Comments
 (0)