Skip to content

Conversation

@EmmanuelDodoo
Copy link

The previous implementation of hit_span incorrectly handled visual breaks. Empty spaces at the end of a line were considered as part of the last span. This PR fixes it so empty spaces are ignored. The code is modified version of the span_bounds implementation.

Before
![Screencast From 2025-10-08 11-47-09(1)](https://github.com/user-attachments/assets/b7342e15-1828-49a9-9f33-ec9654f9d09b behaviour before the fix)

After
![Screencast From 2025-10-08 20-30-45](https://github.com/user-attachments/assets/336a3af9-9aab-447f-a76a-e7b5e8aa9171 behaviour after the fix)

- Fixed span hit test for text::Paragraph
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.

1 participant