File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -598,9 +598,9 @@ _zsh_highlight_main_highlighter_highlight_list()
598
598
arg=$args [1]
599
599
shift args
600
600
if (( $# in_alias )) ; then
601
- (( in_alias[- 1 ]-- ))
602
- # Remove trailing 0 entries
603
- in_alias=($in_alias [1, $in_alias [(I )< 1-> ]])
601
+ (( in_alias[1 ]-- ))
602
+ # Remove leading 0 entries
603
+ in_alias=($in_alias [$in_alias [(i )< 1-> ],-1 ])
604
604
if (( $# in_alias == 0 )) ; then
605
605
seen_alias=()
606
606
# start_pos and end_pos are of the alias (previous $arg) here
@@ -713,11 +713,11 @@ _zsh_highlight_main_highlighter_highlight_list()
713
713
alias_style=alias
714
714
else
715
715
# Transfer the count of this arg to the new element about to be appended.
716
- (( in_alias[- 1 ]-- ))
716
+ (( in_alias[1 ]-- ))
717
717
fi
718
- # Add one because we will in_alias[- 1]-- on the next loop iteration so
718
+ # Add one because we will in_alias[1]-- on the next loop iteration so
719
719
# this iteration should be considered in in_alias as well
720
- in_alias+ =( $(( $# alias_args + 1 )) )
720
+ in_alias=( $(( $# alias_args + 1 )) $in_alias )
721
721
(( in_redirection++ )) # Stall this arg
722
722
continue
723
723
else
You can’t perform that action at this time.
0 commit comments