Adjust cursor position if editing the line in another screen