var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);