set cursor after insertion/deletion. (Fixes #1)