Skip to content

Commit b3f66fc

Browse files
committed
main: Use zsyh_user_options when splitting alias RHS
1 parent 83249e1 commit b3f66fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

highlighters/main/main-highlighter.zsh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,11 @@ _zsh_highlight_main_highlighter_highlight_list()
543543
_zsh_highlight_main__resolve_alias $arg
544544
local -a alias_args
545545
# Elision is desired in case alias x=''
546-
alias_args=( ${interactive_comments-${(z)REPLY}}
547-
${interactive_comments+${(zZ+c+)REPLY}} )
546+
if [[ $zsyh_user_options[interactivecomments] == on ]]; then
547+
alias_args=(${(zZ+c+)REPLY})
548+
else
549+
alias_args=(${(z)REPLY})
550+
fi
548551
args=( $alias_args $args )
549552
if (( in_alias == 0 )); then
550553
_zsh_highlight_main_add_region_highlight $start_pos $end_pos alias

0 commit comments

Comments
 (0)