Browse Source

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

Found by code inspection.
pull/550/head
Daniel Shahaf 6 years ago
committed by Matthew Martin
parent
commit
005179ed8e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      highlighters/main/main-highlighter.zsh

+ 1
- 0
highlighters/main/main-highlighter.zsh 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:'

Loading…
Cancel
Save