the following day the british ships were sheltering close under cape st vincent repairing the battle damage to their own vessels and the prizes when lookouts spotted twenty-two sail of the spanish fleet bearing down on them in battle formation obviously intent upon rescuing their compatriots , but after a short exchange of fire they hauled off and returned to cadiz .