mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
TextDocument::merge_span_collections() automatically makes sure that the spans are valid, move forwards, are in order, and do not overlap. This means we don't have to check these things every time TextEditor paints the document. merge_span_collections() now does these checks instead. I am not certain they are still useful, but someone in the past certainly did. I have modified them to take advantage of the operator overloads and Formatter that we now have.
45 KiB
45 KiB