main: Move - to end of character class

Closes #472
This commit is contained in:
Matthew Martin 2018-02-11 11:08:27 -06:00
parent 9706af4b81
commit 90b09f88ee

View File

@ -835,7 +835,7 @@ _zsh_highlight_main_highlighter_highlight_argument()
while [[ $arg[i+1] == [\^=~#+] ]]; do while [[ $arg[i+1] == [\^=~#+] ]]; do
(( i += 1 )) (( i += 1 ))
done done
if [[ $arg[i+1] == [*@#?-$!] ]]; then if [[ $arg[i+1] == [*@#?$!-] ]]; then
(( i += 1 )) (( i += 1 ))
fi;; fi;;
*) *)