Whether or not to buy a house with foundation repair is up to you, but with a good inspection, you can feel more comfortable about your decision. Have the foundation inspected by a qualified professional to determine the severity of the damage and the estimated cost for repairs. Then, negotiate the purchase price based on those findings.
If the home seller discloses previous foundation repairs, an inspection can reveal the likelihood of future problems. Some foundation repairs are surface repairs that don't deal with the underlying cause of the foundation damage. These types of repairs are temporary fixes that will eventually become problematic and costly.