Skip to content

Make iOS trailing newlines not use current typing attributes - #183

Merged
szydlovsky merged 1 commit into
mainfrom
@szydlovsky/ios-trailing-newline-measure-fix
Oct 6, 2025
Merged

szydlovsky merged 1 commit into
mainfrom
@szydlovsky/ios-trailing-newline-measure-fix

Conversation

@szydlovsky

Copy link
Copy Markdown
Collaborator

Trailing newlines on iOS need to be measured as if there was a fake I character to get the proper measurement. But incorrectly, current typing attributes were used for the character. This resulted in a funny thing; trailing newline would change sizes if we changed selection from a, say, heading line to non heading line. Now it uses the default typing attributes.

@szydlovsky
szydlovsky requested a review from exploIF October 3, 2025 14:43
@szydlovsky
szydlovsky merged commit f678b77 into main Oct 6, 2025
5 checks passed
@szydlovsky
szydlovsky deleted the @szydlovsky/ios-trailing-newline-measure-fix branch October 6, 2025 07:12
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