Before this change the bounday could mistakenly have happened on a soft line wrap. Also fixes interaction with inlays better.