Cursor holds its doc as this.doc; cursor.char() won't go over the current line's length