[DEV] Update position on undo/redo & write char