If any party having right or claim to lands subject to a proceeding filed pursuant to § 55.1-1419, at any time before the trial in such ejectment, pays to the party entitled to such rent, or to his attorney, or pays into court, all the rent and arrears owed, along with any reasonable attorney fees and late charges contracted for in a written rental agreement, interest, and costs, all further proceedings in the ejectment shall cease. If the person claiming the land is relieved, he is entitled to hold the land in the same manner as he was prior to the commencement of the proceedings, without a new lease or conveyance. If the parties dispute the amount of rent and other charges owed, the court shall take evidence on the issue and make orders for the tender, payment, or refund of any appropriate amounts.
Va. Code § 55.1-1423