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

Normalise annotations on AnnotatedIOBuffer read #53801

Commits on Mar 21, 2024

  1. Normalise annotations on AnnotatedIOBuffer read

    It is easy to come across situations where content with the same styling
    is consecutively written to an AnnotatedIOBuffer, resulting in what
    could be one region with a certain style being represented with many
    identical regions instead. This is entirely valid, and handled
    correctly, but it is much nicer in a number of respects if any such
    regions are consolidated.
    
    The annotatedstring_optimize! function does exactly this, and so we
    apply it to the AnnotatedString result when reading from an
    AnnotatedIOBuffer.
    tecosaur committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    80a6b59 View commit details
    Browse the repository at this point in the history