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

parley: fix Cursor::previous_visual by mirroring Cursor::next_visual #116

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomcur
Copy link
Member

@tomcur tomcur commented Sep 13, 2024

Selecting upstream from the first cluster after a hard line break and then moving the selection one cluster downstream (to the left in ltr text), the cursor moves to the end of the previous line, instead of to the downstream position of that first cluster. This fixes that by mirroring the implementation of Cursor::next_visual to Cursor::previous_visual.

Zulip thread: https://xi.zulipchat.com/#narrow/stream/296640-font-tech/topic/Parley.20editor.20example.3A.20wrong.20boundary.20detection.3F

@tomcur tomcur marked this pull request as draft September 13, 2024 13:36
@tomcur
Copy link
Member Author

tomcur commented Sep 13, 2024

This introduces other problems (see the Zulip thread).

@PoignardAzur
Copy link
Contributor

PoignardAzur commented Oct 5, 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.

2 participants