preserve cursor position
Merge pull request #7 from tiagolupepic/caret-position

Preserve caret position