support cursor position for when there isnt a selection