Skip to content

Merge Trailing Line on Attachments, Select Attachments #98

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

thecoolwinter
Copy link
Contributor

@thecoolwinter thecoolwinter commented Jun 3, 2025

Description

Fixes a bug with text attachments that ended on the newline character in a line. Eg:

A
B

Text attachment added for range (0..<2) should result in:

[Attachment]B

Right now it results in the following visible lines.

[Attachment]B

Also introduces the ability for text attachments to respond to being selected and draw their contents differently.

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

With new behavior:

Screen.Recording.2025-06-03.at.10.15.54.AM.mov

@thecoolwinter thecoolwinter marked this pull request as draft June 3, 2025 15:35
@thecoolwinter thecoolwinter marked this pull request as ready for review June 5, 2025 16:27
@thecoolwinter thecoolwinter changed the title Merge Trailing Line when Adding Attachment Merge Trailing Line on Attachments, Select Attachments Jun 5, 2025
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