98 subaru wagon head gasket

considering buying the car with 190K miles. Only the head gasket has been replaced – good idea or not?  Everything else looks good on the car.

The guy has a good reputation but I’m wondering about damage done to engine when first gasket failed.  How many miles could I expect to get out of this car with the new gasket?

Thanks for replies!