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

fix: Console editor missed printed output. #2133

Merged
merged 2 commits into from
Mar 11, 2025

Conversation

paxcut
Copy link
Contributor

@paxcut paxcut commented Feb 20, 2025

This change is to fix a bug reported in discord by berkus and Naheulf about the console missing output lines. The bug was caused by using SetText which replaces the existing text with the text in the argument.

To fix it use InsertText which puts the text at the current cursor position that was already set to the end of the current contents.

Code was tested with pattern used to reproduce the bug and seemed to work when evaluated repeatedly.

@Naheulf
Copy link

Naheulf commented Feb 23, 2025

Commit 8c13d00 fix build actions. So I guess you can rebase your PR.

This change is to fix a bug reported in discord by berkus and Naheulf about the console missing output lines. The bug was caused by using SetText which replaces the existing text with the text in the argument.

To fix it use InsertText which puts the text at the current cursor position that was already set to the end of the current contents.

Code was tested with pattern used to reproduce the bug and seemed to work when evaluated repeatedly.
@paxcut paxcut force-pushed the ConsoleEditorEatingLinesBug branch from 9c98519 to 5ed8a94 Compare February 24, 2025 04:43
@paxcut
Copy link
Contributor Author

paxcut commented Feb 24, 2025

Ok, I rebased it and is trying to build again. I don't expect any problems since this is probably one of the simplest PRs ever.

@WerWolv WerWolv merged commit 7d09cc6 into WerWolv:master Mar 11, 2025
19 of 20 checks passed
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.

3 participants