apply: Don't unnecessarily update line lengths in the preimage