when checking comment behaviour, only get line up to cursor