Does setting `curStart.ch = null` and then calling `setCursor(curStart)` always put the cursor at the end of the line? If so then I'd prefer if you make the intent clear here. If not, could you please explain?