Typewright: Fix a couple minor problems with calculating the word boxes after an edit.