Skip to content

Commit 2080a44

Browse files
committed
minor: Remove redundant setting of $highlight_glob.
1 parent 59fbdda commit 2080a44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

highlighters/main/main-highlighter.zsh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ _zsh_highlight_main_highlighter()
144144
sudo_arg=false
145145
else
146146
sudo=false
147-
new_expression=true; highlight_glob=true
147+
new_expression=true
148148
fi
149149
;;
150150
esac
@@ -178,7 +178,7 @@ _zsh_highlight_main_highlighter()
178178
if [[ $arg[-1] != '(' ]]; then
179179
# assignment to a scalar parameter.
180180
# (For array assignments, the command doesn't start until the ")" token.)
181-
new_expression=true; highlight_glob=true
181+
new_expression=true
182182
fi
183183
elif [[ $arg[0,1] == $histchars[0,1] || $arg[0,1] == $histchars[2,2] ]]; then
184184
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
@@ -211,7 +211,7 @@ _zsh_highlight_main_highlighter()
211211
else # $arg is the file target of a prefix redirection, or a non-command word
212212
if $redirection; then
213213
redirection=false
214-
new_expression=true; highlight_glob=true
214+
new_expression=true
215215
fi
216216
case $arg in
217217
'--'*) style=$ZSH_HIGHLIGHT_STYLES[double-hyphen-option];;

0 commit comments

Comments
 (0)