-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Search match counter does not reset properly when switching files #3361
Comments
Hi |
Thanks for sharing your thoughts on this issue @mennatawfiq. Since @kammeows submitted a PR for it already we'll continue to work off of that one. |
Hey @raclim, before reviewing this pull request, I noticed that the issue is already open at Issue #2125. It would be better to close this duplicate issue and instead reference the older issue. Additionally, @kammeows' pull request should also be linked to the original issue for better tracking. Let me know your thoughts! I was also trying to fix this issue, but due to inconsistencies in the steps provided by the original issue author, I couldn't replicate it accurately. If any help is needed in the PR to resolve this, I'm happy to assist! @kammeows @raclim |
Hey @Jatin24062005 thank you for your response! I wasn't aware that this issue was already opened before. @raclim should I link this pr to the original issue? I'm not sure how that is to be done though. |
Thanks for sharing your thoughts @kammeows and @Jatin24062005! Hmm, ideally we do want to link to and work with the original issues to help with organization. However, I do think that there's a lot of helpful contextual information within this one that's opened that's laid out pretty well. I think it might be okay to keep both open for now, or if you'd like at @kammeows you can close this one and add in your thoughts to the original one, but I think that can be up to you! |
I would like to work in this |
Thanks for your interest in this @swastikCommits. Since @kammeows has submitted a PR for it already, we will continue to work off of their submission. |
fix: reset search match counter when switching files (issue #3361)
p5.js version
1.11.1
What is your operating system?
Windows
Web browser and version
132.0.6834.160
Actual Behavior
When switching between files in the p5.js Web Editor, the search match counter does not reset. The counter continues displaying results from the previously opened file instead of updating to reflect matches in the new file.
Because of this, it shows wrong values of matched words (if any).
In the following image, I have one hello written in sketch.js:
I switch to index.html, which has 2 hellos written, but the counter doesn't update to 2 and instead shows a wrong value:
And if I type 2 more hellos, it still doesn't update correctly:
Once I switch back to sketch.js, it shows previous count, which again is a wrong behavior:
Expected Behavior
Steps to reproduce
Steps:
The text was updated successfully, but these errors were encountered: