main: Remove needless code

The below code handles this case.
This commit is contained in:
Matthew Martin 2018-03-25 21:42:57 -05:00
parent b6e0aeb380
commit 3ddb974a3d

View file

@ -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