> Does setting `curStart.ch = null` and then calling `setCursor(curStart)` always put the cursor at the end of the line?

http://codemirror.net/doc/manual.html#api

> If you give `ch` a value of `null`, or don't specify it, it will be replaced with the length of the specified line.

***

> If so then I'd prefer if you make the intent clear here.

would adding a comment suffice? "null `ch` so cursor moves to eol"