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

fn queue_buffer probably didn't mean to flush; Simplified engine->insert_char and removed the need to create a String at each insert. #180

Merged
merged 3 commits into from
Nov 10, 2021

Conversation

josh-59
Copy link
Contributor

@josh-59 josh-59 commented Nov 10, 2021

Sorry: Still new to all this Github machinery!

But, have eliminated the need to create a new String at each character insert.
Since we have separated the manipulation of the underlying buffer from the act of painting it, there's no harm in inserting the character into the buffer, then inspecting that.

Moreover, tried to make the code for 'insert char' more readable, and to simplify the interfaces.

@josh-59 josh-59 changed the title fn queue_buffer probably didn't mean to flush :) fn queue_buffer probably didn't mean to flush; Simplified engine->insert_char and removed the need to create a String at each insert. Nov 10, 2021
@sophiajt
Copy link
Contributor

Thanks for the PR! looks good

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.

None yet

2 participants