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 single line cursor offset bug #22

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

apainintheneck
Copy link
Owner

The cursor based its offset on the literal length of the line not the visual length of the line which caused problems when using escape codes. This fix was pulled in from an upstream branch and it fixes the calculation for the cursor.

Note: This bug is still present in the multiline version though.

Thanks for the fix @olegat!

The cursor based its offset on the literal length of the line not
the visual length of the line which caused problems when using
escape codes. This fix was pulled in from an upstream branch and
it fixes the calculation for the cursor.

Note: This bug is still present in the multiline version though.

- antirez/linenoise#135
- https://github.com/olegat
@apainintheneck apainintheneck added the bug Something isn't working label Feb 6, 2024
@apainintheneck apainintheneck merged commit 399d212 into main Feb 6, 2024
2 checks passed
@apainintheneck apainintheneck deleted the fix-single-line-cursor-offset-bug branch February 6, 2024 05:45
@olegat
Copy link

olegat commented Feb 6, 2024

Happy to help! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants