GTcreyon / SM63Redux

Code base for Super Mario 63 Redux
https://sm63redux.com
Mozilla Public License 2.0
193 stars 25 forks source link

Console commands don't go through on first confirm #263

Closed Koopa1018 closed 10 months ago

Koopa1018 commented 11 months ago

Describe the bug Since auto-completion was added to the console, typing commands straight through has become several steps less convenient.

In released alpha 0.1.6, I can type e.g. fludd hover and press enter, and the command immediately takes effect.

In the repo, ever since #189 was merged, I type the command and press enter, and rather than taking effect, an extra space is added to the end of the command. Once the space is added, pressing enter again makes the command go through as expected.

This does not occur with commands which end in a number argument, such as health 8 and w t1 4.

To Reproduce

  1. Open the debug console.
  2. Type any valid command whose final argument is not a number.
  3. Press enter to submit the command.
  4. Press enter to submit the command again.

Expected behavior Typed commands go through instantly, without having to add an extra keystroke.

Screenshots N/A

System Information

Additional context N/A