add mapping for previous cursor position