Fix caret offset in editor

In CodeMirror, when lines are so long that they wrap, the caret would be displayed one column to the left of where it actually was.