redo sets cursor position in similar manner as in undo