-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Remove special handling of line ending characters in selection replacement #10786
Conversation
This adds more weird special cases instead of removing them like is described in that issue by us. The desired behavior for The only necessary change is to remove the special case for checking weather a grapheme (that is being replaced) is a line ending. |
dc5182d
to
9795e12
Compare
@pascalkuthe ACK, I misunderstood what the code here was doing. I've rewritten the PR to do as the comment in the issue suggests and just remove the special handling of line endings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as expected:
https://github.com/helix-editor/helix/assets/68993177/413be1fa-35a3-46b7-a7fc-b813781d6321
Why can't it be merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simplifies existing code & adds unit test. LGTM
@the-mikedavis I've pushed a commit to address your comments. Please let me know if any other changes are needed. |
…ement (helix-editor#10786) * Remove special-casing of line ending characters in selection replacement * Refactor line ending handling and integration test to address code review comments
…ement (helix-editor#10786) * Remove special-casing of line ending characters in selection replacement * Refactor line ending handling and integration test to address code review comments
Remove special handling of line ending characters in selection replacement which prevented newline characters from being replaced
Fixes #10725