Skip to content

Conversation

@BruceChenQAQ
Copy link
Contributor

Ignore escape code when calculating string length.

Not quite sure if there are side effects to accessing InternalContext.CursorLeftPosLimit outside of InternalContext.WriteLock, if this is okay I can change it in the next commit.

image

@breadbyte
Copy link
Owner

Not quite sure if there are side effects to accessing InternalContext.CursorLeftPosLimit outside of InternalContext.WriteLock

There shouldn't be any right now as it's simply just a copy of Console.WindowWidth and shouldn't really change much.

This might change in #3, but that would be accounted for when that is resolved.

@BruceChenQAQ
Copy link
Contributor Author

Okay, I've changed it to calculate outside the lock.

@breadbyte
Copy link
Owner

LGTM. Thank you for your contribution!

@breadbyte breadbyte merged commit a5ed69e into breadbyte:main Sep 5, 2022
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