Fix #1401.
Fix #1401.

This still isn't great, since undo scrolls to the position of the
formatting change.  But since most formatting is likely to be
incremental, this is better than scrolling to the top of the
entire document.

google/codeworld,google/codeworld,google/codeworld