Or, if there is text already input, add a space before tabbing.
Expected behavior:
If there isn't an expression, then normal tab behavior: search usernames if not a chat message, accept command suggestions, etc.
Observed behavior:NaN is placed in the chat input box instead. This is most apparent when using a command, where muscle memory might make you accidentally insert /setblock NaN NaN NaN chest.
Note: I presume it's seeing an empty expression, thus taking precedence over vanilla mechanics, and evaluating it. This does not happen if there's a non-empty non-expression.
Steps to reproduce:
Expected behavior: If there isn't an expression, then normal tab behavior: search usernames if not a chat message, accept command suggestions, etc.
Observed behavior:
NaN
is placed in the chat input box instead. This is most apparent when using a command, where muscle memory might make you accidentally insert/setblock NaN NaN NaN chest
.Note: I presume it's seeing an empty expression, thus taking precedence over vanilla mechanics, and evaluating it. This does not happen if there's a non-empty non-expression.