Retain cursor position after value change.
Merge pull request #28 from skakri/bug/26-cursor-position

Retain cursor position after value change.