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

Respect the current formatting for new text entry #80

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

Conversation

jbmorley
Copy link

I've been seeing text jumping during typing after applying formatting with different font sizes. Reproducing this is a little fiddly, but seems to stem from the fact that the typing attributes don't reliably pick up the style from the underlying NSAttributedString.

This change explicitly sets the typing attributes to match the attributes at the insertion point, failing over to the default editor font if the editor is empty.

@jbmorley
Copy link
Author

Here's the behavior I've been seeing (thanks to @gingerbeardman for the bug report and video):

ea28919b53ad818f.mp4

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.

None yet

1 participant