Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only current line in tab-completing commands #2279

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

dot-Comfey
Copy link
Contributor

https://www.smogon.com/forums/threads/bug-report.3749269/

At this point, it's a bit more than a bug fix. It seems intuitive that attempting to perform a tab-complete on one line should search for commands on that line, but it doesn't because it's searching for commands using the entire text box, which was also causing the issue of sending lines into chat.

Besides that, I also reverted the behavior of both commands and usernames being able to be candidates of the same autocomplete, while retaining the ability to autocomplete usernames if placed after the command; I'm not sure how it was helpful to go between commands and usernames.

Changed stuff that npm run test did not like.
@mia-pi-git mia-pi-git merged commit 04ed96b into smogon:master Sep 3, 2024
1 check passed
@mia-pi-git
Copy link
Member

LGTM, thanks!

shrianshChari pushed a commit to shrianshChari/pokemon-showdown-client that referenced this pull request Oct 8, 2024
* Use only current line in tab-completing commands

https://www.smogon.com/forums/threads/bug-report.3749269/

At this point, it's a bit more than a bug fix.

* Update client-chat.js

Changed stuff that npm run test did not like.

* Restore subcommand behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants