Put the cursor on the long line in the editable frame above, press END to try and go to the end. The cursor will appear to sit at the end of the visible part of the line, but when you type the characters do appear at the end of the line.

Setting a white-space: pre style for the body of the frame makes this problem go away.