If a tenancy for a term expires while the tenant's suit for forcible entry is pending, the landlord may prosecute the suit in the tenant's name for the landlord's benefit and at the landlord's expense. It is immaterial whether the tenant received possession from the landlord or became a tenant after obtaining possession of the property.
Tex. Prop. Code § 24.003