Fix caret offset in editor
Merge pull request #137 from stianjensen/caret_offset

Fix caret offset in editor