Handle cursor offset