'main': Update $this_word state with our inferences.
Found by code inspection.
This commit is contained in:
parent
0709520597
commit
005179ed8e
@ -592,6 +592,7 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||||||
# Not an option flag; nothing to do. (If the command line is
|
# Not an option flag; nothing to do. (If the command line is
|
||||||
# syntactically valid, ${this_word//:sudo_opt:/} should be
|
# syntactically valid, ${this_word//:sudo_opt:/} should be
|
||||||
# non-empty now.)
|
# non-empty now.)
|
||||||
|
this_word=${this_word//:sudo_opt:/}
|
||||||
fi
|
fi
|
||||||
elif [[ $this_word == *':sudo_arg:'* ]]; then
|
elif [[ $this_word == *':sudo_arg:'* ]]; then
|
||||||
next_word+=':sudo_opt:'
|
next_word+=':sudo_opt:'
|
||||||
|
Loading…
Reference in New Issue
Block a user