Skip to content

Fix off-by-one error in automatic ending quote addition #459

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

Merged
merged 2 commits into from
Feb 24, 2024

Conversation

mkilgore
Copy link
Contributor

The math here is wrong, it accounts for the extra quote when doing - 2, but obviously that quote is not there in this situation so it should just be - 1. The result of the current logic is that it cuts off the last character of the string.

This was introduced in #435.

The math here is wrong, it accounts for the extra quote when doing `-
2`, but obviously that quote is not there in this situation so it should
just be `- 1`. The result of the current logic is that it cuts off the
last character of the string.
@mkilgore mkilgore merged commit 8a1c3c7 into QB64-Phoenix-Edition:main Feb 24, 2024
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