'main': Update $this_word state with our inferences.
Found by code inspection.
This commit is contained in:
parent
8fa7a15640
commit
2580a8bd8b
@ -552,6 +552,7 @@ _zsh_highlight_highlighter_main_paint()
|
|||||||
# 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…
x
Reference in New Issue
Block a user