We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 241d3a9 commit 4bbd2a3Copy full SHA for 4bbd2a3
highlighters/main/main-highlighter.zsh
@@ -790,8 +790,11 @@ _zsh_highlight_main_highlighter_highlight_list()
790
elif ! (( in_redirection)) && [[ $this_word == *':start:'* ]]; then # $arg is the command word
791
if (( ${+precommand_options[$arg]} )) && _zsh_highlight_main__is_runnable $arg; then
792
style=precommand
793
- flags_with_argument=${precommand_options[$arg]%:*}
794
- flags_sans_argument=${precommand_options[$arg]#*:}
+ () {
+ set -- "${(@s.:.)precommand_options[$arg]}"
795
+ flags_with_argument=$1
796
+ flags_sans_argument=$2
797
+ }
798
next_word=${next_word//:regular:/}
799
next_word+=':sudo_opt:'
800
next_word+=':start:'
0 commit comments