'main': Update $this_word state with our inferences.

Found by code inspection.
This commit is contained in:
Daniel Shahaf 2018-01-12 16:08:22 +00:00 committed by Matthew Martin
parent 0709520597
commit 005179ed8e

View file

@ -592,6 +592,7 @@ _zsh_highlight_main_highlighter_highlight_list()
# Not an option flag; nothing to do. (If the command line is
# syntactically valid, ${this_word//:sudo_opt:/} should be
# non-empty now.)
this_word=${this_word//:sudo_opt:/}
fi
elif [[ $this_word == *':sudo_arg:'* ]]; then
next_word+=':sudo_opt:'