some more wrap limit code + tests in `EditSession`