This tests for a repaint bug. The old caret position should be invalidated when a paragraph separator is inserted.