Tab suggestion box for entity selector closing square bracket misaligned in certain situations
See attached screenshot. Amongst others, the following inputs will trigger this bug:
Valid prefixes:
- /clear @a[gamemode=cr (note it works properly without the last r!)
Invalid prefixes:
- /clear @a[gamemode=x
- /clear @a[gamemode==
- /clear @a[_rotation=
Created Issue:
Tab suggestion box for entity selector closing square bracket misaligned in certain situations
See attached screenshots. Amongst others, the following inputs will trigger this bug:
Valid prefixes:
- /clear @a[gamemode=cr (note it works properly without the last r!)
Invalid prefixes:
- /clear @a[gamemode=x
- /clear @a[gamemode==
- /clear @a[_rotation=
Changed Description:
See attached screenshot
s. Amongst others, the following inputs will trigger this bug:Valid prefixes:
- /clear @a[gamemode=cr (note it works properly without the last r!)
Invalid prefixes:
- /clear @a[gamemode=x
- /clear @a[gamemode==
- /clear @a[_rotation=
Added Attachments:
Added Labels: command-syntax-help selector
Added Assignee:
[Mojang] Nathan Adams
Added Fixed Versions: 18w06a

This seems to be an attempt to show when arguments or their values are valid/invalid. Example:
This behavior might be a placeholder that the devs are using until they fully implement error handling and tab completion for selector arguments. The bracket is currently misaligned to show that the argument or value parameter is invalid, and it aligns properly when a valid argument is put in. Example:
Also, the error handling still thinks that the shorthand versions for gamemodes, a, c, s, and sp, are still valid, even though they were removed. This is why /clear @a[gamemode=c (erroneously) places the bracket in the "correct" spot.