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

Cursor cannot move past last character in a file that does not end in a line break #3

Closed
lthoerner opened this issue Feb 2, 2023 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@lthoerner
Copy link
Owner

On files that do not end in a '\n', the cursor will not index out of the buffer, which causes it to stay behind the last character.

This is a slightly difficult issue as the cursor index is closely-tied to the buffer, and characters cannot be appended to the buffer from outside of it.

@lthoerner lthoerner added bug Something isn't working good first issue Good for newcomers labels Feb 2, 2023
@lthoerner lthoerner self-assigned this Feb 2, 2023
lthoerner added a commit that referenced this issue Feb 2, 2023
@lthoerner lthoerner reopened this Feb 2, 2023
@lthoerner
Copy link
Owner Author

Fixed with 657fc88

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

No branches or pull requests

1 participant