Cursor position is saved on edits.

Fixes #5