`ME_UpdateRepaint()` is supposed to be called when contents changes, not the formatting. Something like this: ```c ME_WrapMarkedParagraphs( services->editor ); ME_UpdateScrollBar( services->editor ); ``` is more appropriate here.
(Yes, the repaint logic is a mess).
This also applies to MR 268. FWIW, it would be easier from a reviewer standpoint if these two MRs were merged into one MR containing two commits.