main: Remove needless code
The below code handles this case.
This commit is contained in:
parent
b6e0aeb380
commit
3ddb974a3d
|
@ -610,13 +610,6 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||
fi
|
||||
}
|
||||
|
||||
# Special-case the first word after 'sudo'.
|
||||
if (( ! in_redirection )); then
|
||||
if [[ $this_word == *':sudo_opt:'* ]] && [[ $arg != -* ]]; then
|
||||
this_word=${this_word//:sudo_opt:/}
|
||||
fi
|
||||
fi
|
||||
|
||||
# Parse the sudo command line
|
||||
if (( ! in_redirection )); then
|
||||
if [[ $this_word == *':sudo_opt:'* ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user