'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
parent 8fa7a15640
commit 2580a8bd8b

View File

@ -552,6 +552,7 @@ _zsh_highlight_highlighter_main_paint()
# 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:'